User

From enviPath Wiki
Jump to navigation Jump to search

REST Operations

GET

URI Parameter Accept Types Result Status Codes
/user

optional parameter "delimiter" for
text/csv only, default value: ","

text/html

application/json

text/plain

text/csv

List of all users. 200 - OK

500 - Internal Server Error

/user/<id>

optional parameter "delimiter" for
text/csv only, default value: ","

text/html

application/json

text/plain

text/csv

The user identified by the URI. 200 - OK

401 - Unauthorized

404 - Not Found

500 - Internal Server Error

POST

URI Parameter Accept Types Result Status Codes
/user username

email

password

Register a new User. The redirect points to the URI of the new User. 303 - See Other

500 - Internal Server Error

/user/<id> pw - password Modify the user identified by the URI. 200 - OK
pw2 - repeat password 401 - Unauthorized
setPublic 404 - Not Found
setPrivate

hiddenMethod = updateProfile

userMail

userLink

userWorkplace

userCity

userCountry


hiddenMethod = defaultSetting

settingUri


hiddenMethod = defaultPackage

packUri

500 - Internal Server Error


DELETE

URI Parameter Accept Types Result Status Codes
/user Delete all users the user has write access on. 303 - See Other

500 - Internal Server Error

/user/<id> Delete the user identified by the URI. 303 - See Other
401 - Unauthorized
404 - Not Found
500 - Internal Server Error



PUT

Not Implemented.