BE:Squads/Piratech/Projekte/DasDing/API/users

Aus Piratenwiki
Wechseln zu: Navigation, Suche
  • Parameter marked with * are optional


/users

/users

actiondescriptionreturnsrestrictionsparams
GET----
PUT----
POSTCreates a new userStatus 400 or 201 with location set to userdetails-page-name, fullname, password, mail, phone*, mobile*
DELETE----

/users/{userid}

actiondescriptionreturnsrestrictionsparams
GETLoads the userjson, xmlAuthentication, same userid-
PUTUpdates the user400 or 204Authentication, same useridpassword*, phone*, mobile*, mail*
POST----
DELETEDeletes the user400 or 204Authenticatin, same userid-


/users/{userid}

actiondescriptionreturnsrestrictionsparams
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