TEAM ORGA API documentation version v1
http://teamorga.com/api/v1
Introduction
The documentation describes the API-endpoints and JSON-formats which enable one to send request and receive responses from the TEAM ORGA API-endpoints.
Trigger an API requests on the command line via cURL like that:
$ curl -X POST http://teamorga.com/api/recurrences \
-H 'Content-Type: application/json' \
-H 'Accept: application/vnd.teamorga.v1+json' \
-H 'Authorization: Token token="s1dHdF-AldFMqKcR7AQgjVNNZOVT5zY5"' \
Make sure to send allways in the header
- the accepted media type of the response body
Accept: application/vnd.teamorga.v1+json
and - a valid token
Authorization: Token token="s1dHdF-AldFMqKcR7AQgjVNNZOVT5zY5"
,
otherwise you will get an error!
Specifing the header media type for the request body Content-Type: application/json
is only needed for POST-/ PUT-requests!
All actions will be executed in the context of the current_user
and responses will be based on the specific current user rights!
AUTHENTICATION
Here the user manages token authentication of the API, e.g.
- requests and creates a token or
- destroys an existing token.
Create a new ApiKey.
Trigger the behaviour via cURL at the command line like that:
$ curl -X POST http://teamorga.com/api_keys \
-H 'Content-Type: application/json' \
-H 'Accept: application/vnd.teamorga.v1+json' \
-d '{"user": {"email": "fritz@teamorga.com", "password": "foobar"}}' \
EVENTS
Collection of available recurrences in the respective context.
Entity representing a recurrence
Get the recurrence with recurrenceId = {recurrenceId}
Create a status for the recurrence participation.
Toggle the status for the recurrence participation.
Collection of available comments in the respective context.
Get a list of comments.
Add a new comment.
TEAMS
Collection of available groups in the respective context.
Collection of available birthdays in the respective context.
Get a list of birthdays.
Collection of available comments in the respective context.
Get a list of comments.
Collection of available recurrences in the respective context.
Get a list of recurrences.
Collection of available users in the respective context.
Get a list of users.
Birthdays
Collection of available birthdays in the respective context.
Comments
Collection of available comments in the respective context.