Dies ist ein ReadOnly-Mirror von wiki.piratenpartei.de!
Die Daten werden täglich aktualisiert.
Die Daten werden täglich aktualisiert.
BE:Squads/Piratech/Projekte/DasDing/API/events
< BE:Squads | Piratech | Projekte | DasDing | API
Zur Navigation springen
Zur Suche springen
Version vom 7. August 2013, 15:23 Uhr von imported>Alexbenisch
- Parameters marked with * are optional
/events
/events
/events/find
/events/find
| action | description | returns | restrictions | params |
| GET | Searches for events | json, xml | - | lat, lon, distance, category |
| PUT | - | - | - | - |
| POST | - | - | - | - |
| DELETE | - | - | - | - |
/events/categories
/events/categories
| action | description | returns | restrictions | params |
| GET | Loads all verified eventcategories | json, xml | - | - |
| PUT | - | - | - | - |
| POST | Creates an eventcategory. If user is verified, the category is set to verified | 400 or 201 with location set to category-detailpage | Authorized | name, description |
| DELETE | - | - | - | - |
/events/categories/{categoryid}
| action | description | returns | restrictions | params |
| GET | Loads the given eventcategory | json, xml | - | - |
| PUT | Updates the given eventcategory. Verified is only set if user is verified | 400 or 204 | Authorized, User who created eventcategory or admin | name*, description*, verified* |
| POST | - | - | - | - |
| DELETE | Deletes the given eventcategory | 400 or 204 | Admin only | - |