Fix JSON mistakes in README.md

This commit is contained in:
Lucas Verney 2015-12-25 23:22:40 +01:00
parent ca1b24e66a
commit 7e80aacdb7
2 changed files with 35 additions and 39 deletions

View File

@ -105,7 +105,7 @@ query parameters.
"related": "/papers/1/relationships/cite" "related": "/papers/1/relationships/cite"
} }
}, },
...
} }
} }
] ]
@ -138,7 +138,7 @@ Accept: application/vnd.api+json
"related": "/papers/1/relationships/cite" "related": "/papers/1/relationships/cite"
} }
}, },
...
} }
} }
} }
@ -163,7 +163,7 @@ Accept: application/vnd.api+json
"type": "papers", "type": "papers",
"id": 2, "id": 2,
}, },
...
] ]
} }
``` ```
@ -196,7 +196,6 @@ Accept: application/vnd.api+json
```json ```json
{ {
"data": { "data": {
{
"type": "papers", "type": "papers",
"id": 1, "id": 1,
"attributes": { "attributes": {
@ -212,8 +211,7 @@ Accept: application/vnd.api+json
"related": "/papers/1/relationships/cite" "related": "/papers/1/relationships/cite"
} }
}, },
...
}
} }
} }
} }
@ -230,7 +228,7 @@ Accept: application/vnd.api+json
{ {
"data": [ "data": [
{ "type": "cite", "id": "2" }, { "type": "cite", "id": "2" },
...
] ]
} }
``` ```
@ -258,7 +256,7 @@ Accept: application/vnd.api+json
{ {
"data": [ "data": [
{ "type": "cite", "id": "2" }, { "type": "cite", "id": "2" },
...
] ]
} }
``` ```

View File

@ -33,7 +33,6 @@ def create_paper(db):
{ {
"data": { "data": {
{
"type": "papers", "type": "papers",
"id": 1, "id": 1,
"attributes": { "attributes": {
@ -53,7 +52,6 @@ def create_paper(db):
} }
} }
} }
}
:param db: A database session, injected by the ``Bottle`` plugin. :param db: A database session, injected by the ``Bottle`` plugin.
:returns: An ``HTTPResponse``. :returns: An ``HTTPResponse``.