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

View File

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