Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //ROUTES
- //URL: http://www.eudc-app.com/debate
- //REQUEST: URL + PREFIX + FUNCTION
- //TOURNAMENT
- //PREFIX: /tournament
- //FUNCTIONS:
- 1. Get all tournaments: /get-all
- type: GET
- response: Array of tournaments
- 2. Get tournament by ID: /get-by-id
- type: POST
- body:
- {
- "tournament_id":"1"
- }
- response: Object of type Tournament
- //USER
- //PREFIX: /user
- //FUNCTIONS:
- 1. Get user by ID: /get-by-id
- type: POST
- body:
- {
- "user_id":"3"
- }
- response: Object of type User
- 2. Get user/s by link: /get-by-link
- type: POST
- body:
- {
- "link":"linklink",
- "tournament_id":"2"
- }
- response: Array of user/s
- //EVENT
- //PREFIX: /event
- //FUNCTIONS:
- 1. Get homepage: /home
- type: POST
- body:
- {
- "tournament_id": "1",
- "current_time":"2018-07-27 18:30:00"
- }
- response: Array of maximum 3 events
- 2. Get schedule: /schedule-observer
- type: POST
- body:
- {
- "tournament_id": "1"
- }
- response: Array of all the events for that tournament
Add Comment
Please, Sign In to add comment