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/actions
< BE:Squads | Piratech | Projekte | DasDing | API
Zur Navigation springen
Zur Suche springen
Version vom 28. Oktober 2012, 15:55 Uhr von imported>Deveth0
- Parameters marked with * are optional
/actions
/actions
/actions/find
/actions/find
| action | description | returns | restrictions | params |
| GET | Searches for actions | json, xml | - | lat, lon, distance, category |
| PUT | - | - | - | - |
| POST | - | - | - | - |
| DELETE | - | - | - | - |
/actions/categories
/actions/categories
| action | description | returns | restrictions | params |
| GET | Loads all verified actioncategories | json, xml | - | - |
| PUT | - | - | - | - |
| POST | Creates an actioncategory. If user is verified, the category is set to verified | 400 or 201 with location set to category-detailpage | Authorized | name, description |
| DELETE | - | - | - | - |
/actions/categories/{categoryid}
| action | description | returns | restrictions | params |
| GET | Loads the given actioncategory | json, xml | - | - |
| PUT | Updates the given actioncategory. Verified is only set if user is verified | 400 or 204 | Authorized, User who created actioncategory or admin | name*, description*, verified* |
| POST | - | - | - | - |
| DELETE | Deletes the given actioncategory | 400 or 204 | Admin only | - |