| Required role: | MueApi |
| GET | /muelev/skoleinfo/fag | Hent informationer om de fag der findes. | |
|---|---|---|---|
| GET | /muelev/skoleinfo/fag/{InstitutionsKode} | Hent informationer om de fag der findes. |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| InstitutionsKode | path | string | Yes | Institutionskode til afgrænsning af resultatet |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Fag | form | IEnumerable<FagResponseDto> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | int | No | |
| Guid | form | Guid | No | |
| Navn | form | string | No | |
| Fagforkortelse | form | string | No | |
| InstitutionId | form | int? | No | |
| FagEjer | form | string | No | |
| FagType | form | FagType | No |
| Non |
| Ukendt |
| Obligatorisk |
| Valgfag |
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /muelev/skoleinfo/fag HTTP/1.1 Host: api.minuddannelse.net Accept: application/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <FagResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ekstern.Api.Services.MUElev.SkoleInfo.Fag.IO"> <Fag i:nil="true" /> </FagResponse>