A .NET client library with examples on how to use the KMD Studica external API.
- The samples uses the .NET 8 SDK 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 the Autorest package, that can be obtained from here: https://github.com/Azure/autorest/tree/master/docs/powershell.
- Autorest can also be configured to generate client code for other languages, including PowerShell for automation.
The connection to KMD Studica is configured through appsettings.json.
{
"ApiKeyName": "Logic-Api-Key",
"TokenProvider": {
"AuthorizationScope": "",
"ClientId": "",
"ClientSecret": ""
},
"StudicaExternalApiKey": "",
"SchoolCode": "",
"InternshipDkBaseUri": "https://gateway.kmdlogic.io/studica/internship-dk/v1",
"SchoolAdministrationBaseUri": "https://gateway.kmdlogic.io/studica/school-administration/v1",
"SchoolInternshipsBaseUri": "https://gateway.kmdlogic.io/studica/school-internships/v1",
"ProgrammesBaseUri": "https://gateway.kmdlogic.io/studica/programmes/v1",
"StatisticsBaseUri": "https://gateway.kmdlogic.io/studica/statistics/v1",
"StudentsBaseUri": "https://gateway.kmdlogic.io/studica/students/v1",
"LocalTestJwtToken": ""
}
- Contact KMD to get a set of client credentials and an API key for integrating with KMD Studica.
SchoolCode
is the required parameter for each request to Studica external API.- The OpenAPI specifications for KMD Studica can be found in the clients directory in the source code of this example: .\src\ExternalApiExamples\Clients<name of service endpoint>
- Powershell scripts
generate.ps1
for generating a generate a client for each of the service endpoints are located in the folders of each external API.
- KMD Studica - Internship.dk
- KMD Studica - School Administration
- KMD Studica - School Internship
- KMD Studica - Programmes
- KMD Studica - Statistics
- KMD Studica - Students