Skip to content

scottaworkman/raceday-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

raceday

REST API for RaceDay Web Application and mobile app for the Jordan YMCA group.

REST API now separated into separate application to support the RaceDay Mobile client application and Web Application. API methods include:

  • /LOGIN (GET) - Password request. groupid, email, apikey query string parameters
  • /LOGIN (POST) - Login user with email/password credentials
  • /LOGIN (PUT) - Change password
  • /EVENT (GET) - retrieve list of upcoming events with user participation indicated
  • /EVENT/{ID} (GET) - retrieve specific event details and participants
  • /EVENT (POST) - add new event
  • /EVENT/{ID} (PUT) - update existing event
  • /EVENT/{ID} (DELETE) - remove existing event
  • /ATTEND (GET) - retrieve upcoming events authenticated user is attending
  • /ATTEND/{ID} (PUT) - add user as attending the specified event
  • /ATTEND/{ID} (DELETE) - remove user as attending specified event
  • /MFUSER (GET) - Return list of all users
  • /MFUSER/{ID} (GET) - retrieve specific user
  • /MFUSER (POST) - add new user
  • /MFUSER/{ID} (PUT) - update existing user
  • /MFUSER/{ID} (DELETE) - remove existing user

#Authentication User must login using email/password to receive token used for all API calls

POST /API/LOGIN
{ groupid: [JYMF Facebook group Id], userid: [user email], password: [user password] apikey: [Application API Key] }
Returns:
{ token: [access token], expiration: [date/time token expires], role: [(-1=empty | 1=denied | 5=member | 10=admin)] }

All REST calls should include the following header:
Authorization: Bearer [access token]

About

Web API now providing REST services for both the web application and the mobile app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published