-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the tracktrains wiki!
Everything that related to users, login/logout and registration (Only by invitations for now)
Methods: POST
Examples:
url: https://api.trackseats.info/v1/user/login/
headers: Content-Type=application/json
data: {"login": "test@test.ts", "password": "test"}
success result: {"message": "You are logged in", "success": true}
Access: any
Methods: POST
Examples:
url: https://api.trackseats.info/v1/user/logout/
headers: Content-Type=application/json
data: {}
success result: {"message": "You are logged out", "success": true}
Access: authenticated user
Methods: POST
Examples:
url: https://api.trackseats.info/v1/user/signup/fmcivnt4985xxmpxavtih5yrc39r3vcxroht4v/
headers: Content-Type=application/json
data: {"password": "test"}
success result: {"success": true, "message": "User has been registered"}
Access: any
Methods: POST
Examples:
url: https://api.trackseats.info/v1/user/invite/test@test.ts/
data: {}
success result: {"success": true, "message": "User has been invited"}
Access: authenticated user with at least a one free invitation.
Methods: GET
Examples:
List of users: https://api.trackseats.info/v1/user/
Specific user: https://api.trackseats.info/v1/user/1/
Access: authenticated user
Fields: email, inviter, invites_counter, is_active, is_staff
Everything that related to tasks for tracking Belarusian railway tickets.
Methods: GET, POST, PUT, DELETE
Examples:
List of tasks: https://api.trackseats.info/v1/byrwtask/
Specific task: https://api.trackseats.info/v1/byrwtask/1/
Access:
Super users have full access.
Authenticated non super users can access (GET, PUT and DELETE) only tasks that belongs to them, and create tasks (POST) without limit.