hcts-hra / tamboti

tamboti
8 stars 4 forks source link

Notes for Developers

Icon stock is from http://www.famfamfam.com/lab/icons/silk/ and http://fontawesome.io.

Installation

Building with maven

Use "mvn clean package".

Dependencies

Tamboti REST APIs

Generate UUID-s

GET /apps/tamboti/api/uuid Host: myserver

Editors

HRA MODS editor

For existing resource:

GET /apps/tamboti/api/editors/hra-mods-editor/uuid-23b9dc11-ec19-4231-8323-6775688b2704 HTTP/1.1 Host: myserver For new resource: GET /apps/tamboti/api/editors/hra-mods-editor/uuid-23b9dc11-ec19-4231-8323-6775688b2704 HTTP/1.1 Host: myserver X-target-collection: {target-collection} X-document-type: {document-type}

curl -X POST -d "usr=usr&psw=psw" http://localhost:8088/client/restxq/deploy/123/real/true/bla

Viewers

TBD.

Users

Create an user

POST /users HTTP/1.1 Host: myserver Content-Type: application/xml <?xml version="1.0"?>

Robert

Retrieve an user details

GET /users/Robert HTTP/1.1 Host: myserver Accept: application/xml

Modify an user details

PUT /users/Robert HTTP/1.1 Host: myserver Content-Type: application/xml <?xml version="1.0"?>

Bob

Delete an user

DELETE /users/Robert HTTP/1.1 Host: myserver Content-Type: application/xml <?xml version="1.0"?>

Bob

Collections

Create / rename a collection

TBD.

Delete a collection

TBD.

Resources

Create / Update a resource

PUT /apps/tamboti/api/resources HTTP/1.1 Host: myserver X-target-collection: {target-collection} X-resource-id: {resource-id}

Delete a resource

DELETE /apps/tamboti/api/resources HTTP/1.1 Host: myserver X-resource-path: {resource path}

DELETE /apps/tamboti/api/resources HTTP/1.1 Host: myserver X-resource-id: {resource-id}