From a7316d516cf9c8d119953a604e29be4e6ec2657c Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Fri, 22 Feb 2013 20:08:48 -0300 Subject: [PATCH] Add rest service doc. --- wise-webapp/doc/REST Services.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wise-webapp/doc/REST Services.md b/wise-webapp/doc/REST Services.md index 4466093b..fa7cf168 100644 --- a/wise-webapp/doc/REST Services.md +++ b/wise-webapp/doc/REST Services.md @@ -25,3 +25,10 @@ Deleting a based on the user id: Changing Password: Template Path: /service/admin/users/{userId}/password * curl "http://{host.name}:{host.port}/{context.path}/service/admin/users/{userId}/password" --request put --basic -u "admin@wisemapping.org:admin" -H "Content-Type:text/plain" --data "" + +Creating a new user: + * Template Path: /service/admin/users/ + * Method: Post + * curl "http://{host.name}:{host.port}/{context.path}/service/admin/users/" --request post --basic -u "admin@wisemapping.org:admin" -H "Content-Type:text/json" --data "{email:"some email", lastname:"last name",fistname="my first name",password:"password"}" + +