Update tainacan-api.md

This commit is contained in:
Weryques 2018-02-26 15:23:11 -03:00 committed by GitHub
parent eb6e5a6bdb
commit bd405b395a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 6 deletions

View File

@ -87,7 +87,8 @@ A REST API for Tainacan Plugin. This API uses the Wordpress REST API.
"title": "string",
"description": "string",
"status": "string",
}
           "terms": ["integer", "integer", ...]
     }
```
2. Route `wp-json/tainacan/v2/items/(?P<item_id>[\d]+)`
@ -108,7 +109,8 @@ A REST API for Tainacan Plugin. This API uses the Wordpress REST API.
{
"title": "string",
"description": "string",
...
           "terms": ["integer", "integer", ...]
           ...
}
```
@ -170,10 +172,7 @@ A REST API for Tainacan Plugin. This API uses the Wordpress REST API.
```javascript
{
"values": [
{ "new": "any_type", "prev": "any_type"},
{ "new": "any_type", "prev": ""}
]
           "values": ["any", "type"]
}
```