TeamFocus-Matija

EUDC APP DOCS

Jul 25th, 2018
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. //ROUTES
  2. //URL: http://www.eudc-app.com/debate
  3. //REQUEST: URL + PREFIX + FUNCTION
  4.  
  5. //TOURNAMENT
  6. //PREFIX: /tournament
  7. //FUNCTIONS:
  8. 1. Get all tournaments: /get-all
  9. type: GET
  10. response: Array of tournaments
  11. 2. Get tournament by ID: /get-by-id
  12. type: POST
  13. body:
  14. {
  15. "tournament_id":"1"
  16. }
  17. response: Object of type Tournament
  18.  
  19.  
  20. //USER
  21. //PREFIX: /user
  22. //FUNCTIONS:
  23. 1. Get user by ID: /get-by-id
  24. type: POST
  25. body:
  26. {
  27. "user_id":"3"
  28. }
  29. response: Object of type User
  30. 2. Get user/s by link: /get-by-link
  31. type: POST
  32. body:
  33. {
  34. "link":"linklink",
  35. "tournament_id":"2"
  36. }
  37. response: Array of user/s
  38.  
  39. //EVENT
  40. //PREFIX: /event
  41. //FUNCTIONS:
  42. 1. Get homepage: /home
  43. type: POST
  44. body:
  45. {
  46. "tournament_id": "1",
  47. "current_time":"2018-07-27 18:30:00"
  48. }
  49. response: Array of maximum 3 events
  50. 2. Get schedule: /schedule-observer
  51. type: POST
  52. body:
  53. {
  54. "tournament_id": "1"
  55. }
  56. response: Array of all the events for that tournament
Add Comment
Please, Sign In to add comment