2012-09-08 17:01:26 +02:00
|
|
|
REST Services
|
|
|
|
---------------
|
|
|
|
|
2012-11-02 01:36:41 +01:00
|
|
|
Introduction
|
|
|
|
-------------
|
|
|
|
|
|
|
|
All WiseMapping services are exposed as REST services. Those services are the same used by the WiseMapping when you are using it.
|
|
|
|
In the following section, all supported services are listed. The following variables should be replaced:
|
|
|
|
|
|
|
|
- host.name: Host name where WiseMapping is deployed. Default Value: localhost
|
|
|
|
- host.post: Post number where WiseMapping is deployed. Default Value: 8080
|
|
|
|
- context.path: Context Path name where the application is deployed. Default Value: wisemapping
|
2012-09-08 17:01:26 +02:00
|
|
|
|
2012-11-02 01:36:41 +01:00
|
|
|
Supported Operations
|
|
|
|
----------------------
|
|
|
|
|
|
|
|
Obtaining user information by email:
|
|
|
|
* Template Path: /service/admin/users/email/{user.email}.json
|
|
|
|
* Example: curl "http://{host.name}:{host.port}/{context.path}/service/admin/users/email/{user.email}.json" --get --basic -u "admin@wisemapping.org:admin"
|
2012-09-08 17:01:26 +02:00
|
|
|
|
|
|
|
Deleting a based on the user id:
|
2012-11-02 01:36:41 +01:00
|
|
|
* Template Path: /service/admin/users/{userId}
|
|
|
|
* curl "http://{host.name}:{host.port}/{context.path}/service/admin/users/{userId}" --request delete --basic -u "admin@wisemapping.org:admin"
|
2012-09-08 17:01:26 +02:00
|
|
|
|
2012-11-24 16:56:12 +01:00
|
|
|
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 "<new_password>"
|
2013-02-23 00:08:48 +01:00
|
|
|
|
|
|
|
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"}"
|
|
|
|
|
|
|
|
|