Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.
Base URLs:
Code samples
GET /api/Bus/List
Retrieves a map of each bus to its position
Example responses
200 Response
{"count":0,"data":{"property1":"string","property2":"string"},"expiry":"2019-08-24T14:15:22Z"}
{
"count": 0,
"data": {
"property1": "string",
"property2": "string"
},
"expiry": "2019-08-24T14:15:22Z"
}| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | OK | BusApiResponse |
Code samples
GET /api/Bus/Info
Retrieves information about a bus
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| bus | query | string | false | none |
Example responses
200 Response
{"name":"string","company":{"name":"string"}}
{
"name": "string",
"company": {
"name": "string"
}
}| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | OK | BusInfoDto |
Code samples
GET /api/Bus/History
Retrieves a history of a bus's arrivals
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| bus | query | string | false | none |
Example responses
200 Response
[{"busName":"string","busPosition":"string","arrivalTime":"2019-08-24T14:15:22Z"}]
[
{
"busName": "string",
"busPosition": "string",
"arrivalTime": "2019-08-24T14:15:22Z"
}
]| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | OK | Inline |
Status Code 200
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| anonymous | [BusArrivalDto] | false | none | none |
| » busName | string¦null | true | none | none |
| » busPosition | string¦null | true | none | none |
| » arrivalTime | string(date-time) | true | none | none |
Code samples
GET /api/Bus/Reports/Generate
Generates a CSV report of all bus arrival data
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| start | query | string(date) | false | none |
| end | query | string(date) | false | none |
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | OK | None |
Code samples
GET /api/Links
Retrieves a list of quick links to key BCA services
Example responses
200 Response
{"count":0,"data":[{"name":"string","target":"http://example.com"}]}
{
"count": 0,
"data": [
{
"name": "string",
"target": "http://example.com"
}
]
}| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | OK | LinkApiResponse |
Code samples
GET /api/News/Stories/Latest
Retrieves the latest news story
Example responses
200 Response
{"data":{"id":0,"title":"string","link":"string","imageLink":"string","contentHtml":"string","createdAt":"2019-08-24T14:15:22Z"},"expiry":"2019-08-24T14:15:22Z"}
{
"data": {
"id": 0,
"title": "string",
"link": "string",
"imageLink": "string",
"contentHtml": "string",
"createdAt": "2019-08-24T14:15:22Z"
},
"expiry": "2019-08-24T14:15:22Z"
}| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | OK | NewsApiResponseOfNewsStoryDto |
Code samples
GET /api/News/Stories
Retrieves the top 10 latest news stories
Example responses
200 Response
{"data":[{"id":0,"title":"string","link":"string","imageLink":"string","contentHtml":"string","createdAt":"2019-08-24T14:15:22Z"}],"expiry":"2019-08-24T14:15:22Z"}
{
"data": [
{
"id": 0,
"title": "string",
"link": "string",
"imageLink": "string",
"contentHtml": "string",
"createdAt": "2019-08-24T14:15:22Z"
}
],
"expiry": "2019-08-24T14:15:22Z"
}| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | OK | NewsApiResponseOfIEnumerableOfNewsStoryDto |
Code samples
GET /api/News/Stories/{id}
Retrieves a story by its ID
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | integer(int32) | true | none |
Example responses
200 Response
{"id":0,"title":"string","link":"string","imageLink":"string","contentHtml":"string","createdAt":"2019-08-24T14:15:22Z"}
{
"id": 0,
"title": "string",
"link": "string",
"imageLink": "string",
"contentHtml": "string",
"createdAt": "2019-08-24T14:15:22Z"
}| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | OK | NewsStoryDto2 |
Code samples
GET /api/Lunch/Week
Retrieves the lunch menu for the week
Example responses
200 Response
{"data":{"startDate":"string","displayName":"string","days":[{"date":"string","menuItems":[{"date":"2019-08-24T14:15:22Z","position":0,"isSectionTitle":true,"text":"string","food":{"id":0,"name":"string","description":"string","subtext":"string","imageUrl":"string"},"stationID":0,"isStationHeader":true,"image":"string","category":"string"}]}]},"expiry":"2019-08-24T14:15:22Z"}
{
"data": {
"startDate": "string",
"displayName": "string",
"days": [
{
"date": "string",
"menuItems": [
{
"date": "2019-08-24T14:15:22Z",
"position": 0,
"isSectionTitle": true,
"text": "string",
"food": {
"id": 0,
"name": "string",
"description": "string",
"subtext": "string",
"imageUrl": "string"
},
"stationID": 0,
"isStationHeader": true,
"image": "string",
"category": "string"
}
]
}
]
},
"expiry": "2019-08-24T14:15:22Z"
}| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | OK | NutrisliceApiResponseOfMenuWeekDto |
Code samples
GET /api/Lunch/Day
Retrieves the lunch menu for the day
Example responses
200 Response
{"data":{"date":"string","menuItems":[{"date":"2019-08-24T14:15:22Z","position":0,"isSectionTitle":true,"text":"string","food":{"id":0,"name":"string","description":"string","subtext":"string","imageUrl":"string"},"stationID":0,"isStationHeader":true,"image":"string","category":"string"}]},"expiry":"2019-08-24T14:15:22Z"}
{
"data": {
"date": "string",
"menuItems": [
{
"date": "2019-08-24T14:15:22Z",
"position": 0,
"isSectionTitle": true,
"text": "string",
"food": {
"id": 0,
"name": "string",
"description": "string",
"subtext": "string",
"imageUrl": "string"
},
"stationID": 0,
"isStationHeader": true,
"image": "string",
"category": "string"
}
]
},
"expiry": "2019-08-24T14:15:22Z"
}| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | OK | NutrisliceApiResponseOfMenuDayDto |
Code samples
GET /api/Schedule/Day/{date}
Retrieves details of the schedule for a day
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| date | path | string(date) | true | none |
Example responses
200 Response
{"id":0,"day":"2019-08-24","scheduleId":0,"schedule":{"id":0,"name":"string","items":[{"periodName":"string","startTime":"14:15:22Z","endTime":"14:15:22Z"}]}}
{
"id": 0,
"day": "2019-08-24",
"scheduleId": 0,
"schedule": {
"id": 0,
"name": "string",
"items": [
{
"periodName": "string",
"startTime": "14:15:22Z",
"endTime": "14:15:22Z"
}
]
}
}| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | OK | ScheduleDayDto |
{
"count": 0,
"data": {
"property1": "string",
"property2": "string"
},
"expiry": "2019-08-24T14:15:22Z"
}
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| count | integer(int32) | true | none | none |
| data | object | true | none | none |
| » additionalProperties | string | false | none | none |
| expiry | string(date-time)¦null | true | none | none |
{
"busName": "string",
"busPosition": "string",
"arrivalTime": "2019-08-24T14:15:22Z"
}
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| busName | string¦null | true | none | none |
| busPosition | string¦null | true | none | none |
| arrivalTime | string(date-time) | true | none | none |
{
"name": "string"
}
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| name | string | true | none | none |
{
"name": "string",
"company": {
"name": "string"
}
}
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| name | string | true | none | none |
| company | BusCompanyDto | true | none | none |
{
"id": 0,
"name": "string",
"description": "string",
"subtext": "string",
"imageUrl": "string"
}
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| id | integer(int32) | true | none | none |
| name | string¦null | true | none | none |
| description | string¦null | true | none | none |
| subtext | string¦null | true | none | none |
| imageUrl | string¦null | true | none | none |
{
"count": 0,
"data": [
{
"name": "string",
"target": "http://example.com"
}
]
}
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| count | integer(int32) | true | none | none |
| data | [LinkDto] | true | none | none |
{
"name": "string",
"target": "http://example.com"
}
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| name | string | true | none | none |
| target | string(uri) | true | none | none |
{
"date": "string",
"menuItems": [
{
"date": "2019-08-24T14:15:22Z",
"position": 0,
"isSectionTitle": true,
"text": "string",
"food": {
"id": 0,
"name": "string",
"description": "string",
"subtext": "string",
"imageUrl": "string"
},
"stationID": 0,
"isStationHeader": true,
"image": "string",
"category": "string"
}
]
}
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| date | string¦null | true | none | none |
| menuItems | [MenuItemDto] | true | none | none |
{
"date": "string",
"menuItems": [
{
"date": "2019-08-24T14:15:22Z",
"position": 0,
"isSectionTitle": true,
"text": "string",
"food": {
"id": 0,
"name": "string",
"description": "string",
"subtext": "string",
"imageUrl": "string"
},
"stationID": 0,
"isStationHeader": true,
"image": "string",
"category": "string"
}
]
}
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| date | string¦null | true | none | none |
| menuItems | [MenuItemDto] | true | none | none |
{
"date": "2019-08-24T14:15:22Z",
"position": 0,
"isSectionTitle": true,
"text": "string",
"food": {
"id": 0,
"name": "string",
"description": "string",
"subtext": "string",
"imageUrl": "string"
},
"stationID": 0,
"isStationHeader": true,
"image": "string",
"category": "string"
}
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| date | string(date-time)¦null | true | none | none |
| position | integer(int32) | true | none | none |
| isSectionTitle | boolean | true | none | none |
| text | string¦null | true | none | none |
| food | FoodItemDto | true | none | none |
| stationID | integer(uint32) | true | none | none |
| isStationHeader | boolean | true | none | none |
| image | string¦null | true | none | none |
| category | string¦null | true | none | none |
{
"startDate": "string",
"displayName": "string",
"days": [
{
"date": "string",
"menuItems": [
{
"date": "2019-08-24T14:15:22Z",
"position": 0,
"isSectionTitle": true,
"text": "string",
"food": {
"id": 0,
"name": "string",
"description": "string",
"subtext": "string",
"imageUrl": "string"
},
"stationID": 0,
"isStationHeader": true,
"image": "string",
"category": "string"
}
]
}
]
}
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| startDate | string¦null | true | none | none |
| displayName | string¦null | true | none | none |
| days | [MenuDayDto] | true | none | none |
{
"data": [
{
"id": 0,
"title": "string",
"link": "string",
"imageLink": "string",
"contentHtml": "string",
"createdAt": "2019-08-24T14:15:22Z"
}
],
"expiry": "2019-08-24T14:15:22Z"
}
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| data | [NewsStoryDto2]¦null | true | none | none |
| expiry | string(date-time)¦null | true | none | none |
{
"data": {
"id": 0,
"title": "string",
"link": "string",
"imageLink": "string",
"contentHtml": "string",
"createdAt": "2019-08-24T14:15:22Z"
},
"expiry": "2019-08-24T14:15:22Z"
}
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| data | NewsStoryDto | true | none | none |
| expiry | string(date-time)¦null | true | none | none |
{
"id": 0,
"title": "string",
"link": "string",
"imageLink": "string",
"contentHtml": "string",
"createdAt": "2019-08-24T14:15:22Z"
}
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| id | integer(int32) | true | none | none |
| title | string | true | none | none |
| link | string | true | none | none |
| imageLink | string¦null | true | none | none |
| contentHtml | string¦null | true | none | none |
| createdAt | string(date-time) | true | none | none |
{
"id": 0,
"title": "string",
"link": "string",
"imageLink": "string",
"contentHtml": "string",
"createdAt": "2019-08-24T14:15:22Z"
}
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| id | integer(int32) | true | none | none |
| title | string | true | none | none |
| link | string | true | none | none |
| imageLink | string¦null | true | none | none |
| contentHtml | string¦null | true | none | none |
| createdAt | string(date-time) | true | none | none |
{
"data": {
"date": "string",
"menuItems": [
{
"date": "2019-08-24T14:15:22Z",
"position": 0,
"isSectionTitle": true,
"text": "string",
"food": {
"id": 0,
"name": "string",
"description": "string",
"subtext": "string",
"imageUrl": "string"
},
"stationID": 0,
"isStationHeader": true,
"image": "string",
"category": "string"
}
]
},
"expiry": "2019-08-24T14:15:22Z"
}
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| data | MenuDayDto2 | true | none | none |
| expiry | string(date-time)¦null | true | none | none |
{
"data": {
"startDate": "string",
"displayName": "string",
"days": [
{
"date": "string",
"menuItems": [
{
"date": "2019-08-24T14:15:22Z",
"position": 0,
"isSectionTitle": true,
"text": "string",
"food": {
"id": 0,
"name": "string",
"description": "string",
"subtext": "string",
"imageUrl": "string"
},
"stationID": 0,
"isStationHeader": true,
"image": "string",
"category": "string"
}
]
}
]
},
"expiry": "2019-08-24T14:15:22Z"
}
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| data | MenuWeekDto | true | none | none |
| expiry | string(date-time)¦null | true | none | none |
{
"id": 0,
"day": "2019-08-24",
"scheduleId": 0,
"schedule": {
"id": 0,
"name": "string",
"items": [
{
"periodName": "string",
"startTime": "14:15:22Z",
"endTime": "14:15:22Z"
}
]
}
}
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| id | integer(int32) | true | none | none |
| day | string(date) | true | none | none |
| scheduleId | integer(int32) | true | none | none |
| schedule | ScheduleDto | true | none | none |
{
"id": 0,
"name": "string",
"items": [
{
"periodName": "string",
"startTime": "14:15:22Z",
"endTime": "14:15:22Z"
}
]
}
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| id | integer(int32) | true | none | none |
| name | string | true | none | none |
| items | [ScheduleItemDto] | true | none | none |
{
"periodName": "string",
"startTime": "14:15:22Z",
"endTime": "14:15:22Z"
}
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| periodName | string | true | none | none |
| startTime | string(time) | true | none | none |
| endTime | string(time) | true | none | none |