A dotnet client library with examples how to use Studica external API via Logic Gateway.
- The samples uses .net core 3.1 LTS which can be downloaded from here: https://dotnet.microsoft.com/download.
- To run the sample first edit the
appsettings.json
configuration file and provide valid information for authorization. - Samples contain REST clients, which were generated by Autorest package, that can be obtained from here: https://github.com/Azure/autorest/tree/master/docs/powershell.
Perhaps the easiest way to configure the connection.
{
"TokenProvider": {
"AuthorizationScope": "",
"ClientId": "",
"ClientSecret": ""
},
"StudicaExternalApiKey": "",
"SchoolCode": ""
}
- Create a subscription in Logic Console.
- Request a client credentials. Once issued you can view the
ClientId
,ClientSecret
andAuthorizationScope
(Subscriptions/Client Credentials). - Generate two API Keys for KMD Studica (Demo) product (API Marketplace/Products/KMD Studica (Demo)/Create api key). They can be used interchangeably. That gives you
StudicaExternalApiKey
. API key must be sent as a request header namedLogic-Api-Key
. SchoolCode
is the required parameter for each request to Studica external API.- OpenAPI specifications can be found in API Marketplace (API Marketplace/APIs/KMD Studica (Demo) - <--Name of endpoint-->/Learn more)
- Powershell scripts
generate.ps1
are located in the folders of each external API. Parameter--input-file
has the direct reference to the OpenAPI spec file located in Logic blob storage.
- KMD Studica (Demo) - Programmes
- KMD Studica (Demo) - School Administration
- KMD Studica (Demo) - Students