Web Service:PR-WS-8: Difference between revisions
From IHRIS Wiki
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
|description=Add Post Details | |description=Add Post Details | ||
|applications=Interoperability Layer, Point-Of-Care, iHRIS | |applications=Interoperability Layer, Point-Of-Care, iHRIS | ||
|url=/ws/rest/v2/ | |url=/ws/rest/v2/add/post | ||
|params=The following webservice should accept the following parameters: | |params=The following webservice should accept the following parameters: | ||
*${type} The type of the post. One of 'PPS' for Paid-Public Sector or 'CHW' for Community Health Worker. Required. | *${type} The type of the post. One of 'PPS' for Paid-Public Sector or 'CHW' for Community Health Worker. Required. | ||
Line 19: | Line 19: | ||
id: 211312, | id: 211312, | ||
actions: { | actions: { | ||
editPost: 'http://rhea-pr.ihris.org/webservices/ | editPost: 'http://rhea-pr.ihris.org/webservices/edit/post?id=992312', | ||
postDetails: 'http://rhea-pr.ihris.org/webservices/ | postDetails: 'http://rhea-pr.ihris.org/webservices/details/post?id=992312', | ||
viewPost: 'http://rhea-pr.ihris.org/providerregistry/post?id=post%7C992312', | viewPost: 'http://rhea-pr.ihris.org/providerregistry/post?id=post%7C992312', | ||
} | } |
Latest revision as of 06:51, 31 October 2012
Web Service: PR-WS-8 Add a Post
Add Post Details
URL | /ws/rest/v2/add/post |
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/edit/post?id=992312', postDetails: 'http://rhea-pr.ihris.org/webservices/details/post?id=992312', viewPost: 'http://rhea-pr.ihris.org/providerregistry/post?id=post%7C992312', }} |
GET Error |
|
GET Example | /ws/rest/v2/add/post/?category=NURSE&type=PPS&fosaid=12312&orgunit=2133 |
Other Resources: Use Case:PR-WS-8