-
Notifications
You must be signed in to change notification settings - Fork 0
API's page
clasky edited this page Feb 10, 2015
·
16 revisions
Use this page to start creating an API of what end points the front end needs.
EX: URL "/tours/dailypage" JSON: {Tour:Boating Tour, Starttime:5:00pm}
- URL: "/events"
- TYPE: "get"
- JSON:
[{title: "Event 1", time: "1/1/2016 3:00:00", groupId: 2342342}, {title: "Event 2", time: "1/1/2016 5:00:00", groupId: 2342342}]
- URL: "/resources"
- TYPE: "get"
- JSON:
[{title: "Bus 1", events: [<array of upcoming events>], id: 2342342}, {title: "Bus 2", events: [<array of upcoming events>], id: 234sd342}]
Login Request: POST Url: api/login JSON: {username, password}
Create User Request: POST Url: api/user JSON: {user}
Get User Request: GET Url: api/user/userid
Update User Request: PUT Url: api/user JSON: {user}
Delete User Request: DELETE Url: api/user/userid