BE:Squads/Piratech/Projekte/DasDing/API/users
Aus Piratenwiki
< BE:Squads | Piratech | Projekte | DasDing | API
Version vom 24. Oktober 2012, 23:52 Uhr von Deveth0 (Diskussion | Beiträge)
- Parameter marked with * are optional
/users
/users
| action | description | returns | restrictions | params |
| GET | - | - | - | - |
| PUT | - | - | - | - |
| POST | Creates a new user | Status 400 or 201 with location set to userdetails-page | - | name, fullname, password, mail, phone*, mobile* |
| DELETE | - | - | - | - |
/users/{userid}
| action | description | returns | restrictions | params |
| GET | Loads the user | json, xml | Authentication, same userid | - |
| PUT | Updates the user | 400 or 204 | Authentication, same userid | password*, phone*, mobile*, mail* |
| POST | - | - | - | - |
| DELETE | Deletes the user | 400 or 204 | Authenticatin, same userid | - |
/users/{userid}
| action | description | returns | restrictions | params |
| GET | - | - | - | - |
| PUT | - | - | - | - |
| POST | - | - | - | - |
| DELETE | - | - | - | - |
/users Method Action Types Params GET unused PUT unused POST add new user json, xml name, password, phone, mobile, mail DELETE unused
/users/id/{id}
Method Action Types Params
GET get user json, xml
PUT update user json, xml password, phone, mobile, mail
POST unused
DELETE delete user
/users/id/{id}/interests
Method Action Types Params
GET get interests json, xml
PUT
POST add interest json, xml interest
DELETE delete interest json, xml interest
/users/id/{id}/actions
Method Action Types Params
GET get actions json, xml
PUT unused
POST add action json, xml actions
DELETE delete action json, xml actions
/users/id/{id}/actions/find
Method Action Types Params
GET get fitting actions json, xml
PUT unused
POST unused
DELETE unused