crossTerm API v2 Example in C#
Configuration and Start
Source code: CrossTermApi.Client.Sample
- .NET Core 2.2 SDK
- Adjust CrossTermApi.Client\appsettings.Development.json and Across Identity Server settings to register your client as a client allowed to authenticate. Process is described in crossTank API, crossTerm API v2 - Authentication.
- cd CrossTermApi.Client
- dotnet run --project CrossTermApi.Client --urls "http://localhost:44376/"
The OData v4 Client Code Generator tool generates a code for OData Connected Services in the infrastructure layer.
OAuth2 password grant flow is used in this app. All configurations are included in appsettings files.
- cd cross-term-api-client
- npm install
- npm run dev
When all the building processes are finished, the console will give a link to the frontend for the app. Open this link in Chrome or Firefox to start working with the app.