PhenoTips » Developer Guide » API » Consents RESTful API

Changes for document Consents RESTful API

From version 50.1
edited by Sergiu Dumitriu
on 2017/08/24 00:12
To version 51.1
edited by Sergiu Dumitriu
on 2017/08/24 00:13
Change comment: Copied from xwiki:DevGuide.VocabulariesRESTfulAPI

Content changes

... ... @@ -48,7 +48,7 @@
48 48 : 200 if request was successful
49 49 : 403 if the user does not have the right to access the patient
50 50 : 404 if the specified patient does not exist
51 -; Example curl request:
51 +; Example ##curl## request:
52 52 : ##curl -u Admin:admin http~:~//localhost:8080/rest/patients/P0000001/consents##
53 53 )))
54 54
... ... @@ -67,7 +67,7 @@
67 67 : 400 if the specified consent is not valid
68 68 : 403 if the user does not have the right to access the patient or modify consents
69 69 : 404 if the specified patient does not exist
70 -; Example curl request:
70 +; Example ##curl## request:
71 71 : ##curl -u Admin:admin -H "Content-Type: text/plain" -X PUT -d 'real' http~:~//localhost:8080/rest/patients/P0000001/consents/grant##
72 72 )))
73 73
... ... @@ -86,7 +86,7 @@
86 86 : 400 if the specified consent is not valid
87 87 : 403 if the user does not have the right to access the patient or modify consents
88 88 : 404 if the specified patient does not exist
89 -; Example curl request:
89 +; Example ##curl## request:
90 90 : ##curl -u Admin:admin -H "Content-Type: text/plain" -X PUT -d 'genetic' http~:~//localhost:8080/rest/patients/P0000001/consents/revoke##
91 91 )))
92 92
... ... @@ -105,6 +105,6 @@
105 105 : 400 if any of the specified consents is not valid
106 106 : 403 if the user does not have the right to access the patient or modify consents
107 107 : 404 if the specified patient does not exist
108 -; Example curl request:
108 +; Example ##curl## request:
109 109 : ##curl -u Admin:admin -H "Content-Type: application/json" -X PUT -d '["real", "genetic"]' http~:~//localhost:8080/rest/patients/P0000001/consents/assign##
110 110 )))