Skip to content

Instantly share code, notes, and snippets.

@W0MP3R
Last active July 18, 2017 19:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save W0MP3R/3992fcf0391fddd9f1b6529ad46e56cb to your computer and use it in GitHub Desktop.
Save W0MP3R/3992fcf0391fddd9f1b6529ad46e56cb to your computer and use it in GitHub Desktop.
URL API ReenactAPP (draft)
GET EVENT TYPE BY LANG
../getEventTypeByLang.php?lang=en
GET EVENT BY PREFERENCES
../getEventsByPreferences.php?ages=[4,8]&countries=['ES','FR']&uname='hibob'
GET EVENT BYR PREFERENCES ORDER BY DATE
../getEventsByDate.php?ages=[4,8]&countries=['ES','FR']&uname='hibob'
GET LIST OF USERS BY EVENT
../getUsersByEvents.php?event=1
GET USER DATA
../getUsersData.php?user=1 (only one user)
../getUsersData.php (all users)
GET ID BY USERNAME
../getUserIdByName.php?userName='hibob'
ADD USER TO EVENT
../action.php?accio=add_user_event&user=1&event=3
DROP USER FROM EVENT
../action.php?accio=drop_user_event&user=1&event=3
ADD USER TO REENACTMENT GROUP
../action.php?accio=add_group_member&user=1&group=1
DROP USER FROM REENACTMENT GROUP
../action.php?accio=drop_group_member&user=1&group=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment