List of common queries

List of common queries

 

Query

API endpoint

Notes

Query

API endpoint

Notes

Given single user, list of bodies they're member of

<path-to-oms-core>/api/members/<id>

field "bodies"

Given single user, list of bodies they're applicant of

<path-to-oms-core>/api/members/<id>

field "join_requests" (contains both approved and pending requests)

Given single user, list of events they've participated to

<path-to-oms-events>/mine/participating

contains all of the events when the logged in is participating (regardless of the status)

Given single user, list of events they're applicant of

<path-to-oms-events>/mine/participating

contains all of the events when the logged in is participating (regardless of the status)

Given single user, list of events they're accepted to

<path-to-oms-events>/mine/participating

contains all of the events when the logged in is participating (regardless of the status), to get when the user is accepted, GET <path-to-oms-events>/single/<event id>/participants/mine

Given body, list of users belonging to it

<path-to-oms-core>/api/bodies/<id>/members

 

Given body, list of users applying to it

<path-to-oms-core>/api/bodies/<id>/join_requests

 

Given an event, list of applicants/pax(/organisers)

<path-to-oms-events>/single/<id> for organizers (field "organizers")

<path-to-oms-events>/single/<id>/participants for participants

 

Given a local, events that it has organised

not implemented yet, but there's <path-to-oms-events>/mine/organizing for listing the events I'm organizer at

 

Given a local, events that it will host

not implemented yet, but there's <path-to-oms-events>/mine/organizing for listing the events I'm organizer at

 

 

 

 

Given user, list of their permission

four of them:

<path-to-oms-core>/api/my_permissions - global

<path-to-oms-core>/api/circles/<id>/my_permissions - permissions for circle

<path-to-oms-core>/api/bodies/<id>/my_permissions - permissions for body

<path-to-oms-core>/api/members/<id>/my_permissions - permissions for member

Just for 'internal work' (frontend needs to know what to display)