Webservice API Specification Doc Template
Webservice API Specification Doc Template
1. GetActiveAccounts
Get List of Active Accounts (Badge number, Patron Type, Expiry date) for current University ID
Request
Method URL
POST api/GetActiveAccounts/
University ID
AUC University ID for current person
Response
Status Response
200 {
" Badge number": string
" Patron Type": string
" Expiry Date": string format dd-MM-yyyy
}
Request
Method URL
POST api/GetBarCode/
Badge Number
Badge Number associated with current university id and patron type
Response
Status Response
200 {
" Bar code": string
}
Conventions
● Client - Client application.
● Status - HTTP status code of response.
● All the possible responses are listed under ‘Responses’ for each method. Only one of them
is issued per request server.
● All responses are in JSON format.
● All request parameters are mandatory unless explicitly marked as [optional]
Status Codes
All status codes are standard HTTP status codes. The below ones are used in this API.
200 OK
201 Created
403 Forbidden
409 Conflict