Bug WISE-190 fixed.
Implement REST Console support.
This commit is contained in:
@@ -5,14 +5,22 @@ 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:
|
||||
In the following section, all supported services are listed.
|
||||
|
||||
REST Console
|
||||
-------------
|
||||
|
||||
You can learn how what are WiseMapping REST API's from using our interactive console. You can access it from here: http://localhost:8080/doc/rest/index.html.
|
||||
Important: Don't forget to configure your server host url in /WEB-INF/app.properties. By default it's configure to http://localhost:8080/wisemapping/</p>
|
||||
|
||||
CURL Usage Examples
|
||||
-------------
|
||||
|
||||
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
|
||||
|
||||
Supported Operations
|
||||
----------------------
|
||||
- context.path: Context Path name where the application is deployed. Default Value: wisemapping
|
||||
|
||||
Obtaining user information by email:
|
||||
* Template Path: /service/admin/users/email/{user.email}.json
|
||||
@@ -30,3 +38,5 @@ 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:application/json" --data '{"email": "te2@mydomain.de", "lastname": "lastname", "firstname":"myfirstname","password":"password"}'
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user