A client for the myFastway API, demonstrating the best practices for authentication and data retrieval
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. For endpoint detail, including request and response objects, please consult the wiki
This project is created using ASP.NET Core 2.1 Unit test project
Once cloned, the appSettings.json document will have to be updated with your client_id and secret obtained from the website. Finally the base-address of the api you're connecting to will have to be provided. The current production api's are
Resource | Country | Description | base-address |
---|---|---|---|
Token Server | [All countries] | oauth authority | https://identity.fastway.org/connect/token |
myFastway API | Australia | api base address | https://api.myfastway.com.au |
myFastway API | New Zealand | api base address | https://api.myfastway.co.nz |
{
"oauth": {
"authority": "https://identity.fastway.org/connect/token",
"client_id": "<YOUR CLIENT_ID>",
"secret": "<YOUR SECRET>",
"scope": ""
},
"api": {
"version": "1.0",
"base-address": ""
}
}
- ASP.NET Core - Core Framework
- XUnit - Testing Framework
- Identity Server Token Validation - OAuth2 token validation framework (optional)