Web Service:PR-WS-8: Difference between revisions
From IHRIS Wiki
No edit summary |
No edit summary |
||
Line 15: | Line 15: | ||
|response=HTTP 200 - OK | |response=HTTP 200 - OK | ||
*If ${repsformat} is 'http' the HTTP response body will contain the id as plain text of the newly created posting | *If ${repsformat} is 'http' the HTTP response body will contain the id as plain text of the newly created posting | ||
*If ${respformat} is 'json' it will contain a JSON object with the field ' | *If ${respformat} is 'json' it will contain a JSON object with the field 'id' of the newly created post as well as the URLs to access for further web-service actions to perform on the post. | ||
{ | { | ||
id: 211312, | id: 211312, |
Revision as of 19:36, 30 October 2012
Web Service: PR-WS-8 Add a Post
Add Post Details
URL | /ws/rest/v2/addPost |
GET Parameters | The following webservice should accept the following parameters:
|
GET Response | HTTP 200 - OK
{ id: 211312, actions: { editPost: 'http://rhea-pr.ihris.org/webservices/editPost?id=992312', postDetails: 'http://rhea-pr.ihris.org/webservices/viewPost?id=992312', viewPost: 'http://rhea-pr.ihris.org/providerregistry/post?id=post%7C992312', }} |
GET Error |
|
GET Example | /ws/rest/v2/addPost/?category=NURSE&type=PPS&fosaid=12312&orgunit=2133 |
Other Resources: Use Case:PR-WS-8