POST api/mockfmk/Versions

Get mock medicine card versions with the given student ids and cprs

Request Information

URI Parameters

None.

Body Parameters

Array of student ids and cprs

Collection of StudentCpr
NameDescriptionTypeAdditional information
Id

Student db id

integer

Required

Cpr

Student cpr number

string

Required

Request Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "Cpr": "sample string 2"
  },
  {
    "Id": 1,
    "Cpr": "sample string 2"
  }
]

application/xml, text/xml

Sample:
<ArrayOfStudentCpr xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <StudentCpr>
    <Id>1</Id>
    <Cpr>sample string 2</Cpr>
  </StudentCpr>
  <StudentCpr>
    <Id>1</Id>
    <Cpr>sample string 2</Cpr>
  </StudentCpr>
</ArrayOfStudentCpr>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'List`1'.

Response Information

Resource Description

List of students and medicine card versions

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.