AbodeONE

<back to all web services

FindLeaves

Requires Authentication
Required role:Admin
The following routes are available for this service:
All Verbs/student/{StudentId}/leaves
All Verbs/leaves
FindLeaves Parameters:
NameParameterData TypeRequiredDescription
StudentIdpathint?No
ApprovalStatusquerystringNo
ApprovalTypequerystringNo
Within90Daysquerybool?No

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST //student/{StudentId}/leaves HTTP/1.1 
Host: api.lsu-staging.abodehms.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"studentId":0,"approvalStatus":"String","approvalType":"String","within90Days":false}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

[{"leaveId":0,"studentId":0,"schoolId":"String","firstName":"String","lastName":"String","age":0,"requestDate":"0001-01-01T00:00:00.0000000","leaveDepart":"0001-01-01T00:00:00.0000000","leaveReturn":"0001-01-01T00:00:00.0000000","destination":"String","hostRelationship":"String","address":"String","address2":"String","city":"String","state":"String","postal":"String","hostphone":"String","cellphone":"String","transport":"String","driver":"String","companions":"String","reason":"String","approvalComment":"String","approvalReason":"String","approvalDate":"0001-01-01T00:00:00.0000000","approvalStatus":"String","approvalType":"String","approvalUserId":0,"approvedBy":"String","commDt":"0001-01-01T00:00:00.0000000","buildingId":0}]