POST api/GetPickUpWindowsBySchoolId

Request Information

URI Parameters

None.

Body Parameters

PickUpWindowBySchoolRequestModel
NameDescriptionTypeAdditional information
SchoolId

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "SchoolId": "7b2d261f-8c94-4f49-8191-e2ba236d676f"
}

application/xml, text/xml

Sample:
<PickUpWindowBySchoolRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cybersoft.Primero.Business.ORD">
  <SchoolId>7b2d261f-8c94-4f49-8191-e2ba236d676f</SchoolId>
</PickUpWindowBySchoolRequestModel>

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 'PickUpWindowBySchoolRequestModel'.

Response Information

Resource Description

Collection of OrdPickUpSite
NameDescriptionTypeAdditional information
ServingSchoolId

globally unique identifier

None.

ServingSchoolName

string

None.

PickUpWindows

Collection of OrdPickUpWindow

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "ServingSchoolId": "cc9fa2c2-1ba0-4574-846f-f6d669b90bcb",
    "ServingSchoolName": "sample string 2",
    "PickUpWindows": [
      {
        "OrdPickUpWindowId": 1,
        "PickUpWindowName": "sample string 2",
        "PickUpSpecialInstructions": "sample string 3",
        "IsActive": true,
        "OrdAvailabilityTypeId": 5,
        "OrdAvailabilityType": "sample string 6",
        "PrimeroSchoolId": "7f5542e6-1e76-4cc5-a9c5-465e317614a5",
        "dtOrdPickUpAdditionalSites": null,
        "dtOrdPickUpWeekDayDtls": []
      },
      {
        "OrdPickUpWindowId": 1,
        "PickUpWindowName": "sample string 2",
        "PickUpSpecialInstructions": "sample string 3",
        "IsActive": true,
        "OrdAvailabilityTypeId": 5,
        "OrdAvailabilityType": "sample string 6",
        "PrimeroSchoolId": "7f5542e6-1e76-4cc5-a9c5-465e317614a5",
        "dtOrdPickUpAdditionalSites": null,
        "dtOrdPickUpWeekDayDtls": []
      }
    ]
  },
  {
    "ServingSchoolId": "cc9fa2c2-1ba0-4574-846f-f6d669b90bcb",
    "ServingSchoolName": "sample string 2",
    "PickUpWindows": [
      {
        "OrdPickUpWindowId": 1,
        "PickUpWindowName": "sample string 2",
        "PickUpSpecialInstructions": "sample string 3",
        "IsActive": true,
        "OrdAvailabilityTypeId": 5,
        "OrdAvailabilityType": "sample string 6",
        "PrimeroSchoolId": "7f5542e6-1e76-4cc5-a9c5-465e317614a5",
        "dtOrdPickUpAdditionalSites": null,
        "dtOrdPickUpWeekDayDtls": []
      },
      {
        "OrdPickUpWindowId": 1,
        "PickUpWindowName": "sample string 2",
        "PickUpSpecialInstructions": "sample string 3",
        "IsActive": true,
        "OrdAvailabilityTypeId": 5,
        "OrdAvailabilityType": "sample string 6",
        "PrimeroSchoolId": "7f5542e6-1e76-4cc5-a9c5-465e317614a5",
        "dtOrdPickUpAdditionalSites": null,
        "dtOrdPickUpWeekDayDtls": []
      }
    ]
  }
]

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Cannot serialize the DataTable. DataTable name is not set.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Cannot serialize the DataTable. DataTable name is not set.