Last active
March 8, 2018 14:34
-
-
Save akhilesh26/5af8441da5e511296ca32d90c928d379 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"publication": [ | |
{ | |
"id": "08f32a73-e415-4c7e-89ed-e496a621950e", | |
"name": "Artificial Intelligence: A Modern Approach", | |
"sort-name": "Artificial Intelligence", | |
"language": "English", | |
"type": "Book", | |
"added": "2018-02-05 08:40:30", | |
"addedBy": "574", | |
}, | |
{ | |
"id": "8c8ca77b-2831-4a28-88d6-ca24a9b2e01f", | |
"name": "A Tale of Two Cities", | |
"sort-name": "cities, tale of 2", | |
"language": "English", | |
"type": "Book", | |
"added": "2017-12-05 08:40:30", | |
"addedBy": "editor_id", | |
"aliases": [ | |
{ "name": "Pulbication Name", "sort-name": "Publication sort name", "language": "Language name" }, | |
{ "name": "Pulbication Name", "sort-name": "Publication sort name", "language": "Language name" } | |
], | |
"identifires": [ | |
{"value" : "id", "type": "wikidata ID"}, | |
{"value" : "id", "type": "MBID"} | |
], | |
"editions": [ | |
{"id": "bbid", "name": "edition name"}, | |
{"id": "bbid", "name": "edition name"} | |
] | |
} | |
] | |
} | |
{ | |
"name": "A Tale of Two Cities", | |
"sort-name": "cities, tale of 2", | |
"language": "English", | |
"type": "Book", | |
"revision_note": "" | |
"aliases": [ | |
{ "name": "A Tale of Two Cities", "sort-name": "cities, tale of 2", "language": "English" }, | |
], | |
"identifires": [ | |
] | |
} | |
``` | |
$ curl "https://api.bookbrainz.com/v1/publication/create\ | |
-X Post \ | |
-H "Content-Type: application/json" | |
-H "userToken: 5e4dd8771cf10d6d05a25945c851b4d8" | |
-d {publication : {publication data object}} | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment