Skip to content

Api Documents Post

Carlos Badenes edited this page Mar 31, 2016 · 1 revision

Create Document Instance

A new document will be created.

Request

POST http://zavijava.dia.fi.upm.es:8888/api/documents/
HEADER:
  Authorization: 70b88ce0-9cb8-23e5-62dd-0002a4d3c52c
Content-Type: application/json
{
  "name": "Guided Visibility Sampling",
  "language": "en",
  "date": "20060730",
  "rights": "ACM Publishing License Agreement",
  "description": "This research addresses the problem of computing the triangles visible from a region in space."
}
  • curl:
curl -i -X POST -H "Authorization: 70b88ce0-9cb8-23e5-62dd-0002a4d3c52c" -d "{'name': 'Guided Visibility Sampling','language': 'en','date': '20060730','rights': 'ACM Publishing License Agreement','description': 'This research addresses the problem of computing the triangles visible from a region in space.'}" http://zavijava.dia.fi.upm.es:8888/api/documents

Response

202 Accepted
{
    "uri": "documents/11111111-2222-3333-4444-555555555555"
}
Clone this wiki locally