Skip to content

Api Words Post

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

Create Word Instance

A new word will be created.

Request

POST http://zavijava.dia.fi.upm.es:8888/api/words/
HEADER:
  Authorization: 70b88ce0-9cb8-23e5-62dd-0002a4d3c52c
Content-Type: application/json
{
  "value": "image",
  "type": "term",
  "pos": "noun"
}
  • curl:
curl -i -X POST -H "Authorization: 70b88ce0-9cb8-23e5-62dd-0002a4d3c52c" -d "{'value': 'image','type': 'term', 'pos': 'noun'}" http://zavijava.dia.fi.upm.es:8888/api/words

Response

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