Update API.md

This commit is contained in:
Tetrakern 2023-02-18 23:08:31 +01:00
parent a1580ed2c2
commit 848ef67467

17
API.md
View File

@ -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
| &emsp;➞ hotlinkAllowed `boolean` | Whether hotlinking images is allowed. Copy and host them yourself otherwise.
| &emsp;➞ header `string\|null` | URL of header image.
| &emsp;➞ cover `string\|null` | URL of cover image.
| taxonomies `object\|null` | Taxonomy collections node.
| taxonomies `object\|null` | Taxonomy collection node.
| &emsp;➞ tags `[string]\|null` | Array of tags.
| &emsp;➞ fandoms `[string]\|null` | Array of fandoms.
| &emsp;➞ characters `[string]\|null` | Array of characters.
| &emsp;➞ warnings `[string]\|null` | Array of warnings.
| &emsp;➞ genres `[string]\|null` | Array of genres.
| chapters `object\|null` | Chapter collection node. See **Chapter Fields**.
| support `object\|null` | Support collection node.
| &emsp;➞ topwebfiction `string\|null` | URL to storys TopWebFiction entry.
| &emsp;➞ patreon `string\|null` | URL to the storys or authors Patreon page.
| &emsp;➞ kofi `string\|null` | URL to the storys or authors Ko-fi page.
| &emsp;➞ subscribestar `string\|null` | URL to the storys or authors SubscribeStar page.
| &emsp;➞ paypal `string\|null` | URL to the storys or authors PayPal address.
| &emsp;➞ donation `string\|null` | URL to the storys or authors donation page.
| timestamp `integer` | Unix timestamp of when the response was compiled (GMT). May be cached.
## Endpoint: Stories