pracro:praxisd
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
pracro:praxisd [2011/04/18 15:07] – deva | pracro:praxisd [2011/12/08 10:16] – deva | ||
---|---|---|---|
Line 378: | Line 378: | ||
</ | </ | ||
</ | </ | ||
+ | |||
====Authenticate==== | ====Authenticate==== | ||
< | < | ||
- | Validate a username and password against the pcpraxis user db. NOTE: this is not needed in order to communicate with the server. Not event PUTs. | + | Validate a username and password against the pcpraxis user db. NOTE: this is not needed in order to communicate with the server. Not event POSTs. |
Parameters: | Parameters: | ||
* user the username | * user the username | ||
Line 393: | Line 394: | ||
//Returns// the plaintext utf-8 name connected with the userid. | //Returns// the plaintext utf-8 name connected with the userid. | ||
- | ====Get All Docmenu | + | ====Get All DokMenu |
< | < | ||
- | Shows the complete | + | Shows the complete |
Parameters: | Parameters: | ||
* cpr the patient id. | * cpr the patient id. | ||
- | //Returns// xml structure with docmenu | + | //Returns// xml structure with dokmenu |
<code xml> | <code xml> | ||
<?xml version=" | <?xml version=" | ||
Line 413: | Line 414: | ||
</ | </ | ||
- | ====Get | + | ====Get |
< | < | ||
- | Fetch contents of a file in the docmenu | + | Fetch contents of a file in the dokmenu |
Parameters: | Parameters: | ||
* cpr the patient id. | * cpr the patient id. | ||
Line 450: | Line 451: | ||
</ | </ | ||
</ | </ | ||
+ | |||
====Update Aftale==== | ====Update Aftale==== | ||
Line 472: | Line 474: | ||
</ | </ | ||
</ | </ | ||
+ | NOTE: All fields are truncated to their respective database column sizes without notice. | ||
+ | |||
+ | On success the server replies with the http statuscode 200: OK | ||
+ | |||
+ | Some of the fail states are: | ||
+ | * The updated aftale is identical to the one already in the database. This does **not** result in an error, but will leave the database untouched. | ||
+ | * The current aftale in the database is no identical to the aftale marked " | ||
+ | * The original does not exist in the database (is was deleted or never added). The server responds with a http err 400: Bad request and body: " | ||
====Add Aftale==== | ====Add Aftale==== | ||
Line 496: | Line 506: | ||
</ | </ | ||
- | ====Add File to Docmenu==== | + | |
+ | ====Add File to DokMenu==== | ||
< | < | ||
- | Upload file to docmenu. | + | Upload file to dokmenu. |
<code xml> | <code xml> | ||
<praxisd version=" | <praxisd version=" | ||
Line 504: | Line 515: | ||
< | < | ||
< | < | ||
- | <file [name=" | + | <file [name=" |
</ | </ | ||
</ | </ | ||
</ | </ | ||
- | ====Delete File from Docmenu==== | + | ====Delete File from DokMenu==== |
< | < | ||
- | Delete a file from the docmenu. | + | Delete a file from the dokmenu. |
<code xml> | <code xml> | ||
<praxisd version=" | <praxisd version=" |
pracro/praxisd.txt · Last modified: 2011/12/08 10:18 by deva