Update API.md
This commit is contained in:
parent
a1580ed2c2
commit
848ef67467
17
API.md
17
API.md
@ -4,6 +4,8 @@
|
||||
|
||||
## Endpoint: Story
|
||||
|
||||
Query this endpoint to retrieve a story and collection of associated chapters. The response is cached for performance reasons.
|
||||
|
||||
```
|
||||
GET /wp-json/storygraph/v1/story/<id>
|
||||
```
|
||||
@ -38,8 +40,21 @@ The following schema defines all fields that can exist within the response, excl
|
||||
|  ➞ hotlinkAllowed `boolean` | Whether hotlinking images is allowed. Copy and host them yourself otherwise.
|
||||
|  ➞ header `string\|null` | URL of header image.
|
||||
|  ➞ cover `string\|null` | URL of cover image.
|
||||
| taxonomies `object\|null` | Taxonomy collections node.
|
||||
| taxonomies `object\|null` | Taxonomy collection node.
|
||||
|  ➞ tags `[string]\|null` | Array of tags.
|
||||
|  ➞ fandoms `[string]\|null` | Array of fandoms.
|
||||
|  ➞ characters `[string]\|null` | Array of characters.
|
||||
|  ➞ warnings `[string]\|null` | Array of warnings.
|
||||
|  ➞ genres `[string]\|null` | Array of genres.
|
||||
| chapters `object\|null` | Chapter collection node. See **Chapter Fields**.
|
||||
| support `object\|null` | Support collection node.
|
||||
|  ➞ topwebfiction `string\|null` | URL to story’s TopWebFiction entry.
|
||||
|  ➞ patreon `string\|null` | URL to the story’s or author’s Patreon page.
|
||||
|  ➞ kofi `string\|null` | URL to the story’s or author’s Ko-fi page.
|
||||
|  ➞ subscribestar `string\|null` | URL to the story’s or author’s SubscribeStar page.
|
||||
|  ➞ paypal `string\|null` | URL to the story’s or author’s PayPal address.
|
||||
|  ➞ donation `string\|null` | URL to the story’s or author’s donation page.
|
||||
| timestamp `integer` | Unix timestamp of when the response was compiled (GMT). May be cached.
|
||||
|
||||
## Endpoint: Stories
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user