Created
July 1, 2020 01:49
-
-
Save wopian/6701198a8ebc58baca18fb77aa09b739 to your computer and use it in GitHub Desktop.
This file has been truncated, but you can view the full file.
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
{ | |
"swagger": "2.0", | |
"info": { | |
"title": "Kitsu API Docs", | |
"version": "", | |
"description": "Kitsu is a modern anime discovery platform that helps you track the\nanime you're watching, discover new anime and socialize with other\nfans.\n\nWith the Kitsu API you can do everything the client can do and much\nmore.\n\nAPI path: `https://kitsu.io/api/edge`\n\n<!-- # Versioning\n\nEvery year, we release a new version of the API, numbered by the\nlast two digits of the current year. For example, the root URL of\nthis (the 2017) release is `https://kitsu.io/api/17/`.\n\nNo fields, endpoints, or resources will be removed until the next\nyear's release, but may be changed to return empty values (arrays,\nempty strings, etc.) before then. Fields, endpoints, and resources\nmay be added throughout the lifetime of a release.\n\nIn addition to these versioned APIs, there is access to the same API\nour website uses. However, this offers no guarantees: anything could\nchange at any time. We suggest you don't use this, but if you need\nto, it can be accessed at `https://kitsu.io/api/edge/`.\n\n## Life Cycle\n\nUpon release of a new version, the previous version will be\nmaintained for one year or until usage drops below 2% of API\ntraffic.\n\nDuring this period, it will not be updated to have any new fields,\nendpoints, or resources. You are expected to keep your applications\nrunning on the latest version of the API. For most applications,\nupgrading should take no more than a few hours of work.\n-->\n\n# JSON API\n\nThe Kitsu API implements the JSON API specification. This means\nthere are some notable semantics to how you consume it, but\nunderstanding it will take a lot of the work of using it out of your\nhands.\n\nThese docs will include a short overview of the capabilities, but\nyou can consult the [JSON API Specification][jsonapi] for more\ninformation.\n\nYou can be more specific about the data you want to retrieve by\nusing URL parameters and are outlined below.\n\n**Note:** This documentation will display parameters with brackets\n(`[` and `]`) for readability, but actual URLs will need to be\npercent-encoded (`%5B` and `%5D`).\n\n## Request Headers\n\nAs per the JSON API specification, all requests to the API should\ncontain these headers:\n\n```\nAccept: application/vnd.api+json\nContent-Type: application/vnd.api+json\n```\n\n## Filtering and Search\n\nFiltering lets you query data that contains certain matching\nattributes or relationships. These take the form of\n`filter[attribute]=value`. For example, you can request all the\nanime of the Adventure genre:\n\n```\n/anime?filter[genres]=adventure\n```\n\nFor some models, you can also search based on the query text:\n\n```\n/anime?filter[text]=cowboy%20bebop\n```\n\n## Pagination\n\nYou can choose how much of a resource to receive by specifying\npagination parameters. Pagination is supported via `limit` and\n`offset`. Resources are paginated in groups of `10` by default and can be\nincreased to a maximum of `20`.\n\n`/anime?page[limit]=5&page[offset]=0`\n\nThe response will include URLs for the first, next and last page of\nresources in the `links` object based on your request.\n\n```\n\"links\": {\n \"first\": \"https://kitsu.io/api/edge/anime?page[limit]=5&page[offset]=0\",\n \"next\": \"https://kitsu.io/api/edge/anime?page[limit]=5&page[offset]=5\",\n \"last\": \"https://kitsu.io/api/edge/anime?page[limit]=5&page[offset]=12062\"\n}\n```\n\n## Sorting\n\nSorting by attributes is also supported. By default, sorts are\napplied in ascending order. You can request a descending order by\nprepending `-` to the parameter. You can use a comma-delimited list\nto sort by multiple attributes.\n\n`/users?sort=-followersCount,-followingCount`\n\n## Includes\n\nYou can include related resources with `include=[relationship]`.\nYou can also specify successive relationships using a `.`. A\ncomma-delimited list can be used to request multiple relationships.\n\n`/library-entries?include=user,anime.genres`\n\n## Sparse Fieldsets\n\nYou can request a resource to only return a specific set of fields\nin its response. For example, to only receive a user's name and\ncreation date:\n\n`/users?fields[users]=name,createdAt`\n\n## Client Implementations\n\nJSON API has a great advantage in that since its standardised,\nAPI-agnostic tools can be made to abstract away the semantics of\nconsuming and working with the data. It is recommended that you use\na JSON API client to implement the Kitsu API for this reason.\n\nMany implementations in over 13 languages can be found on the\n[JSON API website][jsonapi-client].\n\n# HTTP Methods\n\nMethod | Description\n-------- | -----------\n`GET` | Fetch - retrieve resources\n`POST` | Create - create new resources\n`PATCH` | Update - (partially) modify existing resources\n`DELETE` | Delete - remove resources\n\n# Status Codes\n\nCode | Description\n----- | -----------\n`200` | OK - request succeeded (GET, PATCH, DELETE)\n`201` | Created - new resource created (POST)\n`204` | No Content - request succeeded (DELETE)\n`400` | Bad Request - malformed request\n`401` | Unauthorized - invalid or no authentication details provided\n`404` | Not Found - resource does not exist\n`406` | Not Acceptable - invalid `Accept` header\n`5xx` | Server Error\n\n# Tutorials\n\n- [You and your Kitsu Anime library](https://github.com/pheyvaer/kitsu-tutorial/blob/master/index.md)\n\n# Questions?\n\nIf you have any questions you can:\n\n- Join our [Discord server][discord]\n\n- Join our Slack by sending an email to josh@kitsu.io\n\n- Ping [@wopian][wopian], [@matthewdias][matthewdias] or [@nuck][nuck] on Kitsu.\n\n[jsonapi]:http://jsonapi.org/format/\n[jsonapi-client]:http://jsonapi.org/implementations/#client-libraries\n[wopian]:https://kitsu.io/users/wopian\n[matthewdias]:https://kitsu.io/users/matthewdias\n[nuck]:https://kitsu.io/users/nuck\n[discord]:https://invite.gg/kitsu" | |
}, | |
"host": "kitsu.io", | |
"basePath": "/api/edge", | |
"schemes": [ | |
"https" | |
], | |
"paths": { | |
"/anime-characters": { | |
"get": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"data": [ | |
{ | |
"id": "1", | |
"type": "animeCharacters", | |
"links": { | |
"self": "https://kitsu.io/api/edge/anime-characters/1" | |
}, | |
"attributes": { | |
"createdAt": "2017-07-27T22:21:26.824Z", | |
"updatedAt": "2017-07-27T22:47:45.129Z", | |
"role": "main" | |
}, | |
"relationships": { | |
"anime": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/anime-characters/1/relationships/anime", | |
"related": "https://kitsu.io/api/edge/anime-characters/1/anime" | |
} | |
}, | |
"character": {}, | |
"castings": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/anime-characters/1/relationships/castings", | |
"related": "https://kitsu.io/api/edge/anime-characters/1/castings" | |
} | |
} | |
} | |
} | |
], | |
"meta": { | |
"count": 109379 | |
}, | |
"links": { | |
"first": "https://kitsu.io/api/edge/anime-characters?page%5Blimit%5D=10&page%5Boffset%5D=0", | |
"prev": "https://kitsu.io/api/edge/anime-characters?page%5Blimit%5D=10&page%5Boffset%5D=0", | |
"next": "https://kitsu.io/api/edge/anime-characters?page%5Blimit%5D=10&page%5Boffset%5D=10", | |
"last": "https://kitsu.io/api/edge/anime-characters?page%5Blimit%5D=10&page%5Boffset%5D=109369" | |
} | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "array", | |
"items": {} | |
}, | |
"meta": { | |
"type": "object", | |
"properties": { | |
"count": { | |
"type": "number" | |
} | |
}, | |
"required": [ | |
"count" | |
] | |
}, | |
"links": { | |
"type": "object", | |
"properties": { | |
"first": { | |
"type": "string" | |
}, | |
"prev": { | |
"type": "string", | |
"description": "Omitted if on first page" | |
}, | |
"next": { | |
"type": "string", | |
"description": "Omitted if on last page" | |
}, | |
"last": { | |
"type": "string" | |
} | |
} | |
} | |
}, | |
"required": [ | |
"data", | |
"meta" | |
] | |
} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Fetch Collection", | |
"operationId": "Fetch Collection", | |
"description": "", | |
"tags": [ | |
"Characters & People" | |
], | |
"parameters": [], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"post": { | |
"responses": { | |
"201": { | |
"description": "Created", | |
"headers": {}, | |
"examples": {} | |
}, | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"409": { | |
"description": "Conflict", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Create Resource", | |
"operationId": "Create Resource", | |
"description": "", | |
"tags": [ | |
"Characters & People" | |
], | |
"parameters": [], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
} | |
}, | |
"/anime-characters/{id}": { | |
"get": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"data": { | |
"id": "1", | |
"type": "animeCharacters", | |
"links": { | |
"self": "https://kitsu.io/api/edge/anime-characters/1" | |
}, | |
"attributes": { | |
"createdAt": "2017-07-27T22:21:26.824Z", | |
"updatedAt": "2017-07-27T22:47:45.129Z", | |
"role": "main" | |
}, | |
"relationships": { | |
"anime": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/anime-characters/1/relationships/anime", | |
"related": "https://kitsu.io/api/edge/anime-characters/1/anime" | |
} | |
}, | |
"character": {}, | |
"castings": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/anime-characters/1/relationships/castings", | |
"related": "https://kitsu.io/api/edge/anime-characters/1/castings" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"type": { | |
"type": "string" | |
}, | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
} | |
} | |
}, | |
"attributes": { | |
"type": "object", | |
"properties": { | |
"createdAt": { | |
"type": "string", | |
"description": "ISO 8601 date and time" | |
}, | |
"updatedAt": { | |
"type": "string", | |
"description": "ISO 8601 of last modification" | |
}, | |
"role": { | |
"type": "string", | |
"enum": [ | |
"main", | |
"supporting" | |
], | |
"description": "Role the character plays in the anime" | |
} | |
} | |
}, | |
"relationships": { | |
"type": "object", | |
"properties": { | |
"anime": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
}, | |
"character": { | |
"type": "object", | |
"properties": {}, | |
"description": "+links (object)\n + self: `https://kitsu.io/api/edge/anime-characters/1/relationships/character`\n + related: `https://kitsu.io/api/edge/anime-characters/1/character`" | |
}, | |
"castings": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"required": [ | |
"id", | |
"type" | |
] | |
} | |
} | |
} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Fetch Resource", | |
"operationId": "Fetch Resource", | |
"description": "", | |
"tags": [ | |
"Characters & People" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "1", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"patch": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": {} | |
}, | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"409": { | |
"description": "Conflict", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Update Resource", | |
"operationId": "Update Resource", | |
"description": "", | |
"tags": [ | |
"Characters & People" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "1", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"delete": { | |
"responses": { | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Delete Resource", | |
"operationId": "Delete Resource", | |
"description": "", | |
"tags": [ | |
"Characters & People" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "1", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
} | |
}, | |
"/anime-productions": { | |
"get": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"data": [ | |
{ | |
"id": "1", | |
"type": "animeProductions", | |
"links": { | |
"self": "https://kitsu.io/api/edge/anime-productions/1" | |
}, | |
"attributes": { | |
"createdAt": "2017-07-27T22:21:26.824Z", | |
"updatedAt": "2017-07-27T22:47:45.129Z", | |
"role": "producer" | |
}, | |
"relationships": { | |
"anime": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/anime-productions/1/relationships/anime", | |
"related": "https://kitsu.io/api/edge/anime-productions/1/anime" | |
} | |
}, | |
"producer": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/anime-productions/1/relationships/producer", | |
"related": "https://kitsu.io/api/edge/anime-productions/1/producer" | |
} | |
} | |
} | |
} | |
], | |
"meta": { | |
"count": 28401 | |
}, | |
"links": { | |
"first": "https://kitsu.io/api/edge/anime-productions?page%5Blimit%5D=10&page%5Boffset%5D=0", | |
"prev": "https://kitsu.io/api/edge/anime-productions?page%5Blimit%5D=10&page%5Boffset%5D=0", | |
"next": "https://kitsu.io/api/edge/anime-productions?page%5Blimit%5D=10&page%5Boffset%5D=10", | |
"last": "https://kitsu.io/api/edge/anime-productions?page%5Blimit%5D=10&page%5Boffset%5D=28391" | |
} | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "array", | |
"items": {} | |
}, | |
"meta": { | |
"type": "object", | |
"properties": { | |
"count": { | |
"type": "number" | |
} | |
}, | |
"required": [ | |
"count" | |
] | |
}, | |
"links": { | |
"type": "object", | |
"properties": { | |
"first": { | |
"type": "string" | |
}, | |
"prev": { | |
"type": "string", | |
"description": "Omitted if on first page" | |
}, | |
"next": { | |
"type": "string", | |
"description": "Omitted if on last page" | |
}, | |
"last": { | |
"type": "string" | |
} | |
} | |
} | |
}, | |
"required": [ | |
"data", | |
"meta" | |
] | |
} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Fetch Collection", | |
"operationId": "Fetch Collection", | |
"description": "", | |
"tags": [ | |
"Characters & People" | |
], | |
"parameters": [], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"post": { | |
"responses": { | |
"201": { | |
"description": "Created", | |
"headers": {}, | |
"examples": {} | |
}, | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"409": { | |
"description": "Conflict", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Create Resource", | |
"operationId": "Create Resource", | |
"description": "", | |
"tags": [ | |
"Characters & People" | |
], | |
"parameters": [], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
} | |
}, | |
"/anime-productions/{id}": { | |
"get": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"data": { | |
"id": "1", | |
"type": "animeProductions", | |
"links": { | |
"self": "https://kitsu.io/api/edge/anime-productions/1" | |
}, | |
"attributes": { | |
"createdAt": "2017-07-27T22:21:26.824Z", | |
"updatedAt": "2017-07-27T22:47:45.129Z", | |
"role": "producer" | |
}, | |
"relationships": { | |
"anime": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/anime-productions/1/relationships/anime", | |
"related": "https://kitsu.io/api/edge/anime-productions/1/anime" | |
} | |
}, | |
"producer": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/anime-productions/1/relationships/producer", | |
"related": "https://kitsu.io/api/edge/anime-productions/1/producer" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"type": { | |
"type": "string" | |
}, | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
} | |
} | |
}, | |
"attributes": { | |
"type": "object", | |
"properties": { | |
"createdAt": { | |
"type": "string", | |
"description": "ISO 8601 date and time" | |
}, | |
"updatedAt": { | |
"type": "string", | |
"description": "ISO 8601 of last modification" | |
}, | |
"role": { | |
"type": "string", | |
"enum": [ | |
"licensor", | |
"producer", | |
"studio" | |
], | |
"description": "role of the producer" | |
} | |
} | |
}, | |
"relationships": { | |
"type": "object", | |
"properties": { | |
"anime": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
}, | |
"producer": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"required": [ | |
"id", | |
"type" | |
] | |
} | |
} | |
} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Fetch Resource", | |
"operationId": "Fetch Resource", | |
"description": "", | |
"tags": [ | |
"Characters & People" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "1", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"patch": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": {} | |
}, | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"409": { | |
"description": "Conflict", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Update Resource", | |
"operationId": "Update Resource", | |
"description": "", | |
"tags": [ | |
"Characters & People" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "1", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"delete": { | |
"responses": { | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Delete Resource", | |
"operationId": "Delete Resource", | |
"description": "", | |
"tags": [ | |
"Characters & People" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "1", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
} | |
}, | |
"/anime-staff": { | |
"get": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"data": [ | |
{ | |
"id": "1", | |
"type": "animeStaff", | |
"links": { | |
"self": "https://kitsu.io/api/edge/anime-staff/1" | |
}, | |
"attributes": { | |
"createdAt": "2017-07-27T22:21:26.824Z", | |
"updatedAt": "2017-07-27T22:47:45.129Z", | |
"role": "Producer" | |
}, | |
"relationships": { | |
"anime": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/anime-staff/1/relationships/anime", | |
"related": "https://kitsu.io/api/edge/anime-staff/1/anime" | |
} | |
}, | |
"person": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/anime-staff/1/relationships/person", | |
"related": "https://kitsu.io/api/edge/anime-staff/1/person" | |
} | |
} | |
} | |
} | |
], | |
"meta": { | |
"count": 88543 | |
}, | |
"links": { | |
"first": "https://kitsu.io/api/edge/anime-staff?page%5Blimit%5D=10&page%5Boffset%5D=0", | |
"prev": "https://kitsu.io/api/edge/anime-staff?page%5Blimit%5D=10&page%5Boffset%5D=0", | |
"next": "https://kitsu.io/api/edge/anime-staff?page%5Blimit%5D=10&page%5Boffset%5D=10", | |
"last": "https://kitsu.io/api/edge/anime-staff?page%5Blimit%5D=10&page%5Boffset%5D=88533" | |
} | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "array", | |
"items": {} | |
}, | |
"meta": { | |
"type": "object", | |
"properties": { | |
"count": { | |
"type": "number" | |
} | |
}, | |
"required": [ | |
"count" | |
] | |
}, | |
"links": { | |
"type": "object", | |
"properties": { | |
"first": { | |
"type": "string" | |
}, | |
"prev": { | |
"type": "string", | |
"description": "Omitted if on first page" | |
}, | |
"next": { | |
"type": "string", | |
"description": "Omitted if on last page" | |
}, | |
"last": { | |
"type": "string" | |
} | |
} | |
} | |
}, | |
"required": [ | |
"data", | |
"meta" | |
] | |
} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Fetch Collection", | |
"operationId": "Fetch Collection", | |
"description": "", | |
"tags": [ | |
"Characters & People" | |
], | |
"parameters": [], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"post": { | |
"responses": { | |
"201": { | |
"description": "Created", | |
"headers": {}, | |
"examples": {} | |
}, | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"409": { | |
"description": "Conflict", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Create Resource", | |
"operationId": "Create Resource", | |
"description": "", | |
"tags": [ | |
"Characters & People" | |
], | |
"parameters": [], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
} | |
}, | |
"/anime-staff/{id}": { | |
"get": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"data": { | |
"id": "1", | |
"type": "animeStaff", | |
"links": { | |
"self": "https://kitsu.io/api/edge/anime-staff/1" | |
}, | |
"attributes": { | |
"createdAt": "2017-07-27T22:21:26.824Z", | |
"updatedAt": "2017-07-27T22:47:45.129Z", | |
"role": "Producer" | |
}, | |
"relationships": { | |
"anime": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/anime-staff/1/relationships/anime", | |
"related": "https://kitsu.io/api/edge/anime-staff/1/anime" | |
} | |
}, | |
"person": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/anime-staff/1/relationships/person", | |
"related": "https://kitsu.io/api/edge/anime-staff/1/person" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"type": { | |
"type": "string" | |
}, | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
} | |
} | |
}, | |
"attributes": { | |
"type": "object", | |
"properties": { | |
"createdAt": { | |
"type": "string", | |
"description": "ISO 8601 date and time" | |
}, | |
"updatedAt": { | |
"type": "string", | |
"description": "ISO 8601 of last modification" | |
}, | |
"role": { | |
"type": "string", | |
"description": "Role of the person (Multiple roles are comma seperated)" | |
} | |
} | |
}, | |
"relationships": { | |
"type": "object", | |
"properties": { | |
"anime": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
}, | |
"person": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"required": [ | |
"id", | |
"type" | |
] | |
} | |
} | |
} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Fetch Resource", | |
"operationId": "Fetch Resource", | |
"description": "", | |
"tags": [ | |
"Characters & People" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "1", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"patch": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": {} | |
}, | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"409": { | |
"description": "Conflict", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Update Resource", | |
"operationId": "Update Resource", | |
"description": "", | |
"tags": [ | |
"Characters & People" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "1", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"delete": { | |
"responses": { | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Delete Resource", | |
"operationId": "Delete Resource", | |
"description": "", | |
"tags": [ | |
"Characters & People" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "1", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
} | |
}, | |
"/castings": { | |
"get": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"data": [ | |
{ | |
"id": "1", | |
"type": "castings", | |
"links": { | |
"self": "https://kitsu.io/api/edge/castings/1" | |
}, | |
"attributes": { | |
"createdAt": "2017-07-27T22:21:26.824Z", | |
"updatedAt": "2017-07-27T22:47:45.129Z", | |
"role": "producer", | |
"voiceActor": false, | |
"featured": false, | |
"language": "English" | |
}, | |
"relationships": { | |
"media": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/castings/1/relationships/media", | |
"related": "https://kitsu.io/api/edge/castings/1/media" | |
} | |
}, | |
"character": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/castings/1/relationships/character", | |
"related": "https://kitsu.io/api/edge/castings/1/character" | |
} | |
}, | |
"person": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/castings/1/relationships/person", | |
"related": "https://kitsu.io/api/edge/castings/1/person" | |
} | |
} | |
} | |
} | |
], | |
"meta": { | |
"count": 244549 | |
}, | |
"links": { | |
"first": "https://kitsu.io/api/edge/castings?page%5Blimit%5D=10&page%5Boffset%5D=0", | |
"prev": "https://kitsu.io/api/edge/castings?page%5Blimit%5D=10&page%5Boffset%5D=0", | |
"next": "https://kitsu.io/api/edge/castings?page%5Blimit%5D=10&page%5Boffset%5D=10", | |
"last": "https://kitsu.io/api/edge/castings?page%5Blimit%5D=10&page%5Boffset%5D=244539" | |
} | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "array", | |
"items": {} | |
}, | |
"meta": { | |
"type": "object", | |
"properties": { | |
"count": { | |
"type": "number" | |
} | |
}, | |
"required": [ | |
"count" | |
] | |
}, | |
"links": { | |
"type": "object", | |
"properties": { | |
"first": { | |
"type": "string" | |
}, | |
"prev": { | |
"type": "string", | |
"description": "Omitted if on first page" | |
}, | |
"next": { | |
"type": "string", | |
"description": "Omitted if on last page" | |
}, | |
"last": { | |
"type": "string" | |
} | |
} | |
} | |
}, | |
"required": [ | |
"data", | |
"meta" | |
] | |
} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Fetch Collection", | |
"operationId": "Fetch Collection", | |
"description": "", | |
"tags": [ | |
"Characters & People" | |
], | |
"parameters": [], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"post": { | |
"responses": { | |
"201": { | |
"description": "Created", | |
"headers": {}, | |
"examples": {} | |
}, | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"409": { | |
"description": "Conflict", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Create Resource", | |
"operationId": "Create Resource", | |
"description": "", | |
"tags": [ | |
"Characters & People" | |
], | |
"parameters": [], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
} | |
}, | |
"/castings/{id}": { | |
"get": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"data": { | |
"id": "1", | |
"type": "castings", | |
"links": { | |
"self": "https://kitsu.io/api/edge/castings/1" | |
}, | |
"attributes": { | |
"createdAt": "2017-07-27T22:21:26.824Z", | |
"updatedAt": "2017-07-27T22:47:45.129Z", | |
"role": "producer", | |
"voiceActor": false, | |
"featured": false, | |
"language": "English" | |
}, | |
"relationships": { | |
"media": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/castings/1/relationships/media", | |
"related": "https://kitsu.io/api/edge/castings/1/media" | |
} | |
}, | |
"character": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/castings/1/relationships/character", | |
"related": "https://kitsu.io/api/edge/castings/1/character" | |
} | |
}, | |
"person": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/castings/1/relationships/person", | |
"related": "https://kitsu.io/api/edge/castings/1/person" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"type": { | |
"type": "string" | |
}, | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
} | |
} | |
}, | |
"attributes": { | |
"type": "object", | |
"properties": { | |
"createdAt": { | |
"type": "string", | |
"description": "ISO 8601 date and time" | |
}, | |
"updatedAt": { | |
"type": "string", | |
"description": "ISO 8601 of last modification" | |
}, | |
"role": { | |
"type": "string", | |
"description": "Role of the person (Multiple roles are comma seperated)" | |
}, | |
"voiceActor": { | |
"type": "boolean" | |
}, | |
"featured": { | |
"type": "boolean" | |
}, | |
"language": { | |
"type": [ | |
"string", | |
"null" | |
], | |
"description": "Language casted in" | |
} | |
} | |
}, | |
"relationships": { | |
"type": "object", | |
"properties": { | |
"media": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
}, | |
"character": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
}, | |
"person": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"required": [ | |
"id", | |
"type" | |
] | |
} | |
} | |
} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Fetch Resource", | |
"operationId": "Fetch Resource", | |
"description": "", | |
"tags": [ | |
"Characters & People" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "1", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"patch": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": {} | |
}, | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"409": { | |
"description": "Conflict", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Update Resource", | |
"operationId": "Update Resource", | |
"description": "", | |
"tags": [ | |
"Characters & People" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "1", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"delete": { | |
"responses": { | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Delete Resource", | |
"operationId": "Delete Resource", | |
"description": "", | |
"tags": [ | |
"Characters & People" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "1", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
} | |
}, | |
"/characters": { | |
"get": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"data": [ | |
{ | |
"id": "1", | |
"type": "characters", | |
"links": { | |
"self": "https://kitsu.io/api/edge/characters/1" | |
}, | |
"attributes": { | |
"createdAt": "2017-07-27T22:21:26.824Z", | |
"updatedAt": "2017-07-27T22:47:45.129Z", | |
"slug": "jet", | |
"name": "Jet Black", | |
"malId": 3, | |
"description": "Jet, known on his home satellite as the \\\"Black Dog\\\"...", | |
"image": { | |
"original": "https://media.kitsu.io/characters/images/1/original.jpg?1483096805" | |
} | |
}, | |
"relationships": { | |
"primaryMedia": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/characters/1/relationships/primary-media", | |
"related": "https://kitsu.io/api/edge/characters/1/primary-media" | |
} | |
}, | |
"castings": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/characters/1/relationships/castings", | |
"related": "https://kitsu.io/api/edge/characters/1/castings" | |
} | |
} | |
} | |
} | |
], | |
"meta": { | |
"count": 950090 | |
}, | |
"links": { | |
"first": "https://kitsu.io/api/edge/characters?page%5Blimit%5D=10&page%5Boffset%5D=0", | |
"prev": "https://kitsu.io/api/edge/characters?page%5Blimit%5D=10&page%5Boffset%5D=0", | |
"next": "https://kitsu.io/api/edge/characters?page%5Blimit%5D=10&page%5Boffset%5D=10", | |
"last": "https://kitsu.io/api/edge/characters?page%5Blimit%5D=10&page%5Boffset%5D=94999" | |
} | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "array", | |
"items": {} | |
}, | |
"meta": { | |
"type": "object", | |
"properties": { | |
"count": { | |
"type": "number" | |
} | |
}, | |
"required": [ | |
"count" | |
] | |
}, | |
"links": { | |
"type": "object", | |
"properties": { | |
"first": { | |
"type": "string" | |
}, | |
"prev": { | |
"type": "string", | |
"description": "Omitted if on first page" | |
}, | |
"next": { | |
"type": "string", | |
"description": "Omitted if on last page" | |
}, | |
"last": { | |
"type": "string" | |
} | |
} | |
} | |
}, | |
"required": [ | |
"data", | |
"meta" | |
] | |
} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Fetch Collection", | |
"operationId": "Fetch Collection", | |
"description": "", | |
"tags": [ | |
"Characters & People" | |
], | |
"parameters": [], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"post": { | |
"responses": { | |
"201": { | |
"description": "Created", | |
"headers": {}, | |
"examples": {} | |
}, | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"409": { | |
"description": "Conflict", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Create Resource", | |
"operationId": "Create Resource", | |
"description": "", | |
"tags": [ | |
"Characters & People" | |
], | |
"parameters": [], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
} | |
}, | |
"/characters/{id}": { | |
"get": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"data": { | |
"id": "1", | |
"type": "characters", | |
"links": { | |
"self": "https://kitsu.io/api/edge/characters/1" | |
}, | |
"attributes": { | |
"createdAt": "2017-07-27T22:21:26.824Z", | |
"updatedAt": "2017-07-27T22:47:45.129Z", | |
"slug": "jet", | |
"name": "Jet Black", | |
"malId": 3, | |
"description": "Jet, known on his home satellite as the \\\"Black Dog\\\"...", | |
"image": { | |
"original": "https://media.kitsu.io/characters/images/1/original.jpg?1483096805" | |
} | |
}, | |
"relationships": { | |
"primaryMedia": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/characters/1/relationships/primary-media", | |
"related": "https://kitsu.io/api/edge/characters/1/primary-media" | |
} | |
}, | |
"castings": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/characters/1/relationships/castings", | |
"related": "https://kitsu.io/api/edge/characters/1/castings" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"type": { | |
"type": "string" | |
}, | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
} | |
} | |
}, | |
"attributes": { | |
"type": "object", | |
"properties": { | |
"createdAt": { | |
"type": "string", | |
"description": "ISO 8601 date and time" | |
}, | |
"updatedAt": { | |
"type": "string", | |
"description": "ISO 8601 of last modification" | |
}, | |
"slug": { | |
"type": "string", | |
"description": "black" | |
}, | |
"name": { | |
"type": "string" | |
}, | |
"malId": { | |
"type": [ | |
"number", | |
"null" | |
] | |
}, | |
"description": { | |
"type": [ | |
"string", | |
"null" | |
] | |
}, | |
"image": { | |
"type": "object", | |
"properties": { | |
"original": { | |
"type": [ | |
"string", | |
"null" | |
] | |
} | |
} | |
} | |
} | |
}, | |
"relationships": { | |
"type": "object", | |
"properties": { | |
"primaryMedia": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
}, | |
"castings": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"required": [ | |
"id", | |
"type" | |
] | |
} | |
} | |
} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Fetch Resource", | |
"operationId": "Fetch Resource", | |
"description": "", | |
"tags": [ | |
"Characters & People" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "1", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"patch": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": {} | |
}, | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"409": { | |
"description": "Conflict", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Update Resource", | |
"operationId": "Update Resource", | |
"description": "", | |
"tags": [ | |
"Characters & People" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "1", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"delete": { | |
"responses": { | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Delete Resource", | |
"operationId": "Delete Resource", | |
"description": "", | |
"tags": [ | |
"Characters & People" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "1", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
} | |
}, | |
"/manga-characters": { | |
"get": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"data": [ | |
{ | |
"id": "1", | |
"type": "mangaCharacters", | |
"links": { | |
"self": "https://kitsu.io/api/edge/manga-characters/1" | |
}, | |
"attributes": { | |
"createdAt": "2017-07-27T22:21:26.824Z", | |
"updatedAt": "2017-07-27T22:47:45.129Z", | |
"role": "main" | |
}, | |
"relationships": { | |
"manga": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/manga-characters/1/relationships/manga", | |
"related": "https://kitsu.io/api/edge/manga-characters/1/manga" | |
} | |
}, | |
"character": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/manga-characters/1/relationships/character", | |
"related": "https://kitsu.io/api/edge/manga-characters/1/character" | |
} | |
} | |
} | |
} | |
], | |
"meta": { | |
"count": 3 | |
}, | |
"links": { | |
"first": "https://kitsu.io/api/edge/manga-characters?page%5Blimit%5D=10&page%5Boffset%5D=0", | |
"prev": "https://kitsu.io/api/edge/manga-characters?page%5Blimit%5D=10&page%5Boffset%5D=0", | |
"next": "https://kitsu.io/api/edge/manga-characters?page%5Blimit%5D=10&page%5Boffset%5D=10", | |
"last": "https://kitsu.io/api/edge/manga-characters?page%5Blimit%5D=10&page%5Boffset%5D=0" | |
} | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "array", | |
"items": {} | |
}, | |
"meta": { | |
"type": "object", | |
"properties": { | |
"count": { | |
"type": "number" | |
} | |
}, | |
"required": [ | |
"count" | |
] | |
}, | |
"links": { | |
"type": "object", | |
"properties": { | |
"first": { | |
"type": "string" | |
}, | |
"prev": { | |
"type": "string", | |
"description": "Omitted if on first page" | |
}, | |
"next": { | |
"type": "string", | |
"description": "Omitted if on last page" | |
}, | |
"last": { | |
"type": "string" | |
} | |
} | |
} | |
}, | |
"required": [ | |
"data", | |
"meta" | |
] | |
} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Fetch Collection", | |
"operationId": "Fetch Collection", | |
"description": "", | |
"tags": [ | |
"Characters & People" | |
], | |
"parameters": [], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"post": { | |
"responses": { | |
"201": { | |
"description": "Created", | |
"headers": {}, | |
"examples": {} | |
}, | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"409": { | |
"description": "Conflict", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Create Resource", | |
"operationId": "Create Resource", | |
"description": "", | |
"tags": [ | |
"Characters & People" | |
], | |
"parameters": [], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
} | |
}, | |
"/manga-characters/{id}": { | |
"get": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"data": { | |
"id": "1", | |
"type": "mangaCharacters", | |
"links": { | |
"self": "https://kitsu.io/api/edge/manga-characters/1" | |
}, | |
"attributes": { | |
"createdAt": "2017-07-27T22:21:26.824Z", | |
"updatedAt": "2017-07-27T22:47:45.129Z", | |
"role": "main" | |
}, | |
"relationships": { | |
"manga": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/manga-characters/1/relationships/manga", | |
"related": "https://kitsu.io/api/edge/manga-characters/1/manga" | |
} | |
}, | |
"character": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/manga-characters/1/relationships/character", | |
"related": "https://kitsu.io/api/edge/manga-characters/1/character" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"type": { | |
"type": "string" | |
}, | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
} | |
} | |
}, | |
"attributes": { | |
"type": "object", | |
"properties": { | |
"createdAt": { | |
"type": "string", | |
"description": "ISO 8601 date and time" | |
}, | |
"updatedAt": { | |
"type": "string", | |
"description": "ISO 8601 of last modification" | |
}, | |
"role": { | |
"type": "string", | |
"enum": [ | |
"main", | |
"supporting" | |
], | |
"description": "Role the character plays in the manga" | |
} | |
} | |
}, | |
"relationships": { | |
"type": "object", | |
"properties": { | |
"manga": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
}, | |
"character": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"required": [ | |
"id", | |
"type" | |
] | |
} | |
} | |
} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Fetch Resource", | |
"operationId": "Fetch Resource", | |
"description": "", | |
"tags": [ | |
"Characters & People" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "1", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"patch": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": {} | |
}, | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"409": { | |
"description": "Conflict", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Update Resource", | |
"operationId": "Update Resource", | |
"description": "", | |
"tags": [ | |
"Characters & People" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "1", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"delete": { | |
"responses": { | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Delete Resource", | |
"operationId": "Delete Resource", | |
"description": "", | |
"tags": [ | |
"Characters & People" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "1", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
} | |
}, | |
"/manga-staff": { | |
"get": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"data": [ | |
{ | |
"id": "1", | |
"type": "mangaStaff", | |
"links": { | |
"self": "https://kitsu.io/api/edge/manga-staff/1" | |
}, | |
"attributes": { | |
"createdAt": "2017-07-27T22:21:26.824Z", | |
"updatedAt": "2017-07-27T22:47:45.129Z", | |
"role": "producer" | |
}, | |
"relationships": { | |
"manga": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/manga-staff/1/relationships/manga", | |
"related": "https://kitsu.io/api/edge/manga-staff/1/manga" | |
} | |
}, | |
"person": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/manga-staff/1/relationships/person", | |
"related": "https://kitsu.io/api/edge/manga-staff/1/person" | |
} | |
} | |
} | |
} | |
], | |
"meta": { | |
"count": 1 | |
}, | |
"links": { | |
"first": "https://kitsu.io/api/edge/manga-staff?page%5Blimit%5D=10&page%5Boffset%5D=0", | |
"prev": "https://kitsu.io/api/edge/manga-staff?page%5Blimit%5D=10&page%5Boffset%5D=0", | |
"next": "https://kitsu.io/api/edge/manga-staff?page%5Blimit%5D=10&page%5Boffset%5D=10", | |
"last": "https://kitsu.io/api/edge/manga-staff?page%5Blimit%5D=10&page%5Boffset%5D=0" | |
} | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "array", | |
"items": {} | |
}, | |
"meta": { | |
"type": "object", | |
"properties": { | |
"count": { | |
"type": "number" | |
} | |
}, | |
"required": [ | |
"count" | |
] | |
}, | |
"links": { | |
"type": "object", | |
"properties": { | |
"first": { | |
"type": "string" | |
}, | |
"prev": { | |
"type": "string", | |
"description": "Omitted if on first page" | |
}, | |
"next": { | |
"type": "string", | |
"description": "Omitted if on last page" | |
}, | |
"last": { | |
"type": "string" | |
} | |
} | |
} | |
}, | |
"required": [ | |
"data", | |
"meta" | |
] | |
} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Fetch Collection", | |
"operationId": "Fetch Collection", | |
"description": "", | |
"tags": [ | |
"Characters & People" | |
], | |
"parameters": [], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"post": { | |
"responses": { | |
"201": { | |
"description": "Created", | |
"headers": {}, | |
"examples": {} | |
}, | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"409": { | |
"description": "Conflict", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Create Resource", | |
"operationId": "Create Resource", | |
"description": "", | |
"tags": [ | |
"Characters & People" | |
], | |
"parameters": [], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
} | |
}, | |
"/manga-staff/{id}": { | |
"get": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"data": { | |
"id": "1", | |
"type": "mangaStaff", | |
"links": { | |
"self": "https://kitsu.io/api/edge/manga-staff/1" | |
}, | |
"attributes": { | |
"createdAt": "2017-07-27T22:21:26.824Z", | |
"updatedAt": "2017-07-27T22:47:45.129Z", | |
"role": "producer" | |
}, | |
"relationships": { | |
"manga": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/manga-staff/1/relationships/manga", | |
"related": "https://kitsu.io/api/edge/manga-staff/1/manga" | |
} | |
}, | |
"person": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/manga-staff/1/relationships/person", | |
"related": "https://kitsu.io/api/edge/manga-staff/1/person" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"type": { | |
"type": "string" | |
}, | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
} | |
} | |
}, | |
"attributes": { | |
"type": "object", | |
"properties": { | |
"createdAt": { | |
"type": "string", | |
"description": "ISO 8601 date and time" | |
}, | |
"updatedAt": { | |
"type": "string", | |
"description": "ISO 8601 of last modification" | |
}, | |
"role": { | |
"type": "string", | |
"description": "Role of the person (Multiple roles are comma seperated)" | |
} | |
} | |
}, | |
"relationships": { | |
"type": "object", | |
"properties": { | |
"manga": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
}, | |
"person": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"required": [ | |
"id", | |
"type" | |
] | |
} | |
} | |
} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Fetch Resource", | |
"operationId": "Fetch Resource", | |
"description": "", | |
"tags": [ | |
"Characters & People" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "1", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"patch": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": {} | |
}, | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"409": { | |
"description": "Conflict", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Update Resource", | |
"operationId": "Update Resource", | |
"description": "", | |
"tags": [ | |
"Characters & People" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "1", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"delete": { | |
"responses": { | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Delete Resource", | |
"operationId": "Delete Resource", | |
"description": "", | |
"tags": [ | |
"Characters & People" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "1", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
} | |
}, | |
"/people": { | |
"get": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"data": [ | |
{ | |
"id": "1", | |
"type": "people", | |
"links": { | |
"self": "https://kitsu.io/api/edge/people/1" | |
}, | |
"attributes": { | |
"createdAt": "2017-07-27T22:21:26.824Z", | |
"updatedAt": "2017-07-27T22:47:45.129Z", | |
"image": "https://media.kitsu.io/people/images/1/original.jpg?1416260317", | |
"name": "Masahiko Minami", | |
"malId": 6519 | |
}, | |
"relationships": { | |
"castings": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/people/1/relationships/castings", | |
"related": "https://kitsu.io/api/edge/people/1/castings" | |
} | |
} | |
} | |
} | |
], | |
"meta": { | |
"count": 27957 | |
}, | |
"links": { | |
"first": "https://kitsu.io/api/edge/people?page%5Blimit%5D=10&page%5Boffset%5D=0", | |
"prev": "https://kitsu.io/api/edge/people?page%5Blimit%5D=10&page%5Boffset%5D=0", | |
"next": "https://kitsu.io/api/edge/people?page%5Blimit%5D=10&page%5Boffset%5D=10", | |
"last": "https://kitsu.io/api/edge/people?page%5Blimit%5D=10&page%5Boffset%5D=27947" | |
} | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "array", | |
"items": {} | |
}, | |
"meta": { | |
"type": "object", | |
"properties": { | |
"count": { | |
"type": "number" | |
} | |
}, | |
"required": [ | |
"count" | |
] | |
}, | |
"links": { | |
"type": "object", | |
"properties": { | |
"first": { | |
"type": "string" | |
}, | |
"prev": { | |
"type": "string", | |
"description": "Omitted if on first page" | |
}, | |
"next": { | |
"type": "string", | |
"description": "Omitted if on last page" | |
}, | |
"last": { | |
"type": "string" | |
} | |
} | |
} | |
}, | |
"required": [ | |
"data", | |
"meta" | |
] | |
} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Fetch Collection", | |
"operationId": "Fetch Collection", | |
"description": "", | |
"tags": [ | |
"Characters & People" | |
], | |
"parameters": [], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"post": { | |
"responses": { | |
"201": { | |
"description": "Created", | |
"headers": {}, | |
"examples": {} | |
}, | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"409": { | |
"description": "Conflict", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Create Resource", | |
"operationId": "Create Resource", | |
"description": "", | |
"tags": [ | |
"Characters & People" | |
], | |
"parameters": [], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
} | |
}, | |
"/people/{id}": { | |
"get": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"data": { | |
"id": "1", | |
"type": "people", | |
"links": { | |
"self": "https://kitsu.io/api/edge/people/1" | |
}, | |
"attributes": { | |
"createdAt": "2017-07-27T22:21:26.824Z", | |
"updatedAt": "2017-07-27T22:47:45.129Z", | |
"image": "https://media.kitsu.io/people/images/1/original.jpg?1416260317", | |
"name": "Masahiko Minami", | |
"malId": 6519 | |
}, | |
"relationships": { | |
"castings": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/people/1/relationships/castings", | |
"related": "https://kitsu.io/api/edge/people/1/castings" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"type": { | |
"type": "string" | |
}, | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
} | |
} | |
}, | |
"attributes": { | |
"type": "object", | |
"properties": { | |
"createdAt": { | |
"type": "string", | |
"description": "ISO 8601 date and time" | |
}, | |
"updatedAt": { | |
"type": "string", | |
"description": "ISO 8601 of last modification" | |
}, | |
"image": { | |
"type": [ | |
"string", | |
"null" | |
] | |
}, | |
"name": { | |
"type": "string" | |
}, | |
"malId": { | |
"type": [ | |
"number", | |
"null" | |
] | |
} | |
} | |
}, | |
"relationships": { | |
"type": "object", | |
"properties": { | |
"castings": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"required": [ | |
"id", | |
"type" | |
] | |
} | |
} | |
} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Fetch Resource", | |
"operationId": "Fetch Resource", | |
"description": "", | |
"tags": [ | |
"Characters & People" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "1", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"patch": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": {} | |
}, | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"409": { | |
"description": "Conflict", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Update Resource", | |
"operationId": "Update Resource", | |
"description": "", | |
"tags": [ | |
"Characters & People" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "1", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"delete": { | |
"responses": { | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Delete Resource", | |
"operationId": "Delete Resource", | |
"description": "", | |
"tags": [ | |
"Characters & People" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "1", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
} | |
}, | |
"/producers": { | |
"get": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"data": [ | |
{ | |
"id": "1", | |
"type": "producers", | |
"links": { | |
"self": "https://kitsu.io/api/edge/producers/1" | |
}, | |
"attributes": { | |
"createdAt": "2017-07-27T22:21:26.824Z", | |
"updatedAt": "2017-07-27T22:47:45.129Z", | |
"slug": "sunrise", | |
"name": "Sunrise" | |
}, | |
"relationships": { | |
"animeProductions": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/producers/1/relationships/anime-productions", | |
"related": "https://kitsu.io/api/edge/producers/1/anime-productions" | |
} | |
} | |
} | |
} | |
], | |
"meta": { | |
"count": 1333 | |
}, | |
"links": { | |
"first": "https://kitsu.io/api/edge/producers?page%5Blimit%5D=10&page%5Boffset%5D=0", | |
"prev": "https://kitsu.io/api/edge/producers?page%5Blimit%5D=10&page%5Boffset%5D=0", | |
"next": "https://kitsu.io/api/edge/producers?page%5Blimit%5D=10&page%5Boffset%5D=10", | |
"last": "https://kitsu.io/api/edge/producers?page%5Blimit%5D=10&page%5Boffset%5D=1323" | |
} | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "array", | |
"items": {} | |
}, | |
"meta": { | |
"type": "object", | |
"properties": { | |
"count": { | |
"type": "number" | |
} | |
}, | |
"required": [ | |
"count" | |
] | |
}, | |
"links": { | |
"type": "object", | |
"properties": { | |
"first": { | |
"type": "string" | |
}, | |
"prev": { | |
"type": "string", | |
"description": "Omitted if on first page" | |
}, | |
"next": { | |
"type": "string", | |
"description": "Omitted if on last page" | |
}, | |
"last": { | |
"type": "string" | |
} | |
} | |
} | |
}, | |
"required": [ | |
"data", | |
"meta" | |
] | |
} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Fetch Collection", | |
"operationId": "Fetch Collection", | |
"description": "", | |
"tags": [ | |
"Characters & People" | |
], | |
"parameters": [], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"post": { | |
"responses": { | |
"201": { | |
"description": "Created", | |
"headers": {}, | |
"examples": {} | |
}, | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"409": { | |
"description": "Conflict", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Create Resource", | |
"operationId": "Create Resource", | |
"description": "", | |
"tags": [ | |
"Characters & People" | |
], | |
"parameters": [], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
} | |
}, | |
"/producers/{id}": { | |
"get": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"data": { | |
"id": "1", | |
"type": "producers", | |
"links": { | |
"self": "https://kitsu.io/api/edge/producers/1" | |
}, | |
"attributes": { | |
"createdAt": "2017-07-27T22:21:26.824Z", | |
"updatedAt": "2017-07-27T22:47:45.129Z", | |
"slug": "sunrise", | |
"name": "Sunrise" | |
}, | |
"relationships": { | |
"animeProductions": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/producers/1/relationships/anime-productions", | |
"related": "https://kitsu.io/api/edge/producers/1/anime-productions" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"type": { | |
"type": "string" | |
}, | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
} | |
} | |
}, | |
"attributes": { | |
"type": "object", | |
"properties": { | |
"createdAt": { | |
"type": "string", | |
"description": "ISO 8601 date and time" | |
}, | |
"updatedAt": { | |
"type": "string", | |
"description": "ISO 8601 of last modification" | |
}, | |
"slug": { | |
"type": "string" | |
}, | |
"name": { | |
"type": "string" | |
} | |
} | |
}, | |
"relationships": { | |
"type": "object", | |
"properties": { | |
"animeProductions": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"required": [ | |
"id", | |
"type" | |
] | |
} | |
} | |
} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Fetch Resource", | |
"operationId": "Fetch Resource", | |
"description": "", | |
"tags": [ | |
"Characters & People" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "1", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"patch": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": {} | |
}, | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"409": { | |
"description": "Conflict", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Update Resource", | |
"operationId": "Update Resource", | |
"description": "", | |
"tags": [ | |
"Characters & People" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "1", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"delete": { | |
"responses": { | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Delete Resource", | |
"operationId": "Delete Resource", | |
"description": "", | |
"tags": [ | |
"Characters & People" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "1", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
} | |
}, | |
"/group-action-logs": { | |
"get": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"data": [ | |
{ | |
"id": "647", | |
"type": "groupActionLogs", | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-action-logs/647" | |
}, | |
"attributes": { | |
"createdAt": "2017-03-12T16:40:59.662Z", | |
"updatedAt": "2017-03-12T16:40:59.662Z", | |
"verb": "about_changed" | |
}, | |
"relationships": { | |
"user": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-action-logs/647/relationships/user", | |
"related": "https://kitsu.io/api/edge/group-action-logs/647/user" | |
} | |
}, | |
"group": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-action-logs/647/relationships/group", | |
"related": "https://kitsu.io/api/edge/group-action-logs/647/group" | |
} | |
}, | |
"target": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-action-logs/647/relationships/target", | |
"related": "https://kitsu.io/api/edge/group-action-logs/647/target" | |
} | |
} | |
} | |
} | |
], | |
"meta": { | |
"count": 58 | |
}, | |
"links": { | |
"first": "https://kitsu.io/api/edge/group-action-logs?page%5Blimit%5D=10&page%5Boffset%5D=0", | |
"prev": "https://kitsu.io/api/edge/group-action-logs?page%5Blimit%5D=10&page%5Boffset%5D=0", | |
"next": "https://kitsu.io/api/edge/group-action-logs?page%5Blimit%5D=10&page%5Boffset%5D=10", | |
"last": "https://kitsu.io/api/edge/group-action-logs?page%5Blimit%5D=10&page%5Boffset%5D=48" | |
} | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "array", | |
"items": {} | |
}, | |
"meta": { | |
"type": "object", | |
"properties": { | |
"count": { | |
"type": "number" | |
} | |
}, | |
"required": [ | |
"count" | |
] | |
}, | |
"links": { | |
"type": "object", | |
"properties": { | |
"first": { | |
"type": "string" | |
}, | |
"prev": { | |
"type": "string", | |
"description": "Omitted if on first page" | |
}, | |
"next": { | |
"type": "string", | |
"description": "Omitted if on last page" | |
}, | |
"last": { | |
"type": "string" | |
} | |
} | |
} | |
}, | |
"required": [ | |
"data", | |
"meta" | |
] | |
} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Fetch Collection", | |
"operationId": "Fetch Collection", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
} | |
}, | |
"/group-action-logs/{id}": { | |
"get": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"data": { | |
"id": "647", | |
"type": "groupActionLogs", | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-action-logs/647" | |
}, | |
"attributes": { | |
"createdAt": "2017-03-12T16:40:59.662Z", | |
"updatedAt": "2017-03-12T16:40:59.662Z", | |
"verb": "about_changed" | |
}, | |
"relationships": { | |
"user": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-action-logs/647/relationships/user", | |
"related": "https://kitsu.io/api/edge/group-action-logs/647/user" | |
} | |
}, | |
"group": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-action-logs/647/relationships/group", | |
"related": "https://kitsu.io/api/edge/group-action-logs/647/group" | |
} | |
}, | |
"target": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-action-logs/647/relationships/target", | |
"related": "https://kitsu.io/api/edge/group-action-logs/647/target" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"type": { | |
"type": "string" | |
}, | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
} | |
} | |
}, | |
"attributes": { | |
"type": "object", | |
"properties": { | |
"createdAt": { | |
"type": "string", | |
"description": "ISO 8601 date and time" | |
}, | |
"updatedAt": { | |
"type": "string", | |
"description": "ISO 8601 of last modification" | |
}, | |
"verb": { | |
"type": "string" | |
} | |
} | |
}, | |
"relationships": { | |
"type": "object", | |
"properties": { | |
"user": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
}, | |
"group": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
}, | |
"target": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"required": [ | |
"id", | |
"type" | |
] | |
} | |
} | |
} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Fetch Resource", | |
"operationId": "Fetch Resource", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "647", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
} | |
}, | |
"/group-bans": { | |
"get": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"data": [ | |
{ | |
"id": "1", | |
"type": "groupBans", | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-bans/1" | |
}, | |
"attributes": { | |
"createdAt": "2017-03-12T16:40:59.662Z", | |
"updatedAt": "2017-03-12T16:40:59.662Z", | |
"notes": null, | |
"notesFormatted": null | |
}, | |
"relationships": { | |
"group": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-bans/1/relationships/group", | |
"related": "https://kitsu.io/api/edge/group-bans/1/group" | |
} | |
}, | |
"user": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-bans/1/relationships/user", | |
"related": "https://kitsu.io/api/edge/group-bans/1/user" | |
} | |
}, | |
"moderator": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-bans/1/relationships/moderator", | |
"related": "https://kitsu.io/api/edge/group-bans/1/moderator" | |
} | |
} | |
} | |
} | |
], | |
"meta": { | |
"count": 1 | |
}, | |
"links": { | |
"first": "https://kitsu.io/api/edge/group-bans?page%5Blimit%5D=10&page%5Boffset%5D=0", | |
"prev": "https://kitsu.io/api/edge/group-bans?page%5Blimit%5D=10&page%5Boffset%5D=0", | |
"next": "https://kitsu.io/api/edge/group-bans?page%5Blimit%5D=10&page%5Boffset%5D=10", | |
"last": "https://kitsu.io/api/edge/group-bans?page%5Blimit%5D=10&page%5Boffset%5D=0" | |
} | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "array", | |
"items": {} | |
}, | |
"meta": { | |
"type": "object", | |
"properties": { | |
"count": { | |
"type": "number" | |
} | |
}, | |
"required": [ | |
"count" | |
] | |
}, | |
"links": { | |
"type": "object", | |
"properties": { | |
"first": { | |
"type": "string" | |
}, | |
"prev": { | |
"type": "string", | |
"description": "Omitted if on first page" | |
}, | |
"next": { | |
"type": "string", | |
"description": "Omitted if on last page" | |
}, | |
"last": { | |
"type": "string" | |
} | |
} | |
} | |
}, | |
"required": [ | |
"data", | |
"meta" | |
] | |
} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Fetch Collection", | |
"operationId": "Fetch Collection", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"post": { | |
"responses": { | |
"201": { | |
"description": "Created", | |
"headers": {}, | |
"examples": {} | |
}, | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"409": { | |
"description": "Conflict", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Create Resource", | |
"operationId": "Create Resource", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
} | |
}, | |
"/group-bans/{id}": { | |
"get": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"data": { | |
"id": "1", | |
"type": "groupBans", | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-bans/1" | |
}, | |
"attributes": { | |
"createdAt": "2017-03-12T16:40:59.662Z", | |
"updatedAt": "2017-03-12T16:40:59.662Z", | |
"notes": null, | |
"notesFormatted": null | |
}, | |
"relationships": { | |
"group": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-bans/1/relationships/group", | |
"related": "https://kitsu.io/api/edge/group-bans/1/group" | |
} | |
}, | |
"user": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-bans/1/relationships/user", | |
"related": "https://kitsu.io/api/edge/group-bans/1/user" | |
} | |
}, | |
"moderator": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-bans/1/relationships/moderator", | |
"related": "https://kitsu.io/api/edge/group-bans/1/moderator" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"type": { | |
"type": "string" | |
}, | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
} | |
} | |
}, | |
"attributes": { | |
"type": "object", | |
"properties": { | |
"createdAt": { | |
"type": "string", | |
"description": "ISO 8601 date and time" | |
}, | |
"updatedAt": { | |
"type": "string", | |
"description": "ISO 8601 of last modification" | |
}, | |
"notes": { | |
"type": [ | |
"string", | |
"null" | |
] | |
}, | |
"notesFormatted": { | |
"type": [ | |
"string", | |
"null" | |
] | |
} | |
} | |
}, | |
"relationships": { | |
"type": "object", | |
"properties": { | |
"group": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
}, | |
"user": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
}, | |
"moderator": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"required": [ | |
"id", | |
"type" | |
] | |
} | |
} | |
} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Fetch Resource", | |
"operationId": "Fetch Resource", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "1", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"delete": { | |
"responses": { | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Delete Resource", | |
"operationId": "Delete Resource", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "1", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
} | |
}, | |
"/group-categories": { | |
"get": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"data": [ | |
{ | |
"id": "1", | |
"type": "groupCategories", | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-categories/1" | |
}, | |
"attributes": { | |
"createdAt": "2017-03-12T06:24:28.884Z", | |
"updatedAt": "2017-03-12T06:24:28.884Z", | |
"name": "Anime & Manga", | |
"slug": "anime-manga", | |
"description": null | |
} | |
} | |
], | |
"meta": { | |
"count": 10 | |
}, | |
"links": { | |
"first": "https://kitsu.io/api/edge/group-categories?page%5Blimit%5D=10&page%5Boffset%5D=0", | |
"prev": "https://kitsu.io/api/edge/group-categories?page%5Blimit%5D=10&page%5Boffset%5D=0", | |
"next": "https://kitsu.io/api/edge/group-categories?page%5Blimit%5D=10&page%5Boffset%5D=10", | |
"last": "https://kitsu.io/api/edge/group-categories?page%5Blimit%5D=10&page%5Boffset%5D=0" | |
} | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "array", | |
"items": {} | |
}, | |
"meta": { | |
"type": "object", | |
"properties": { | |
"count": { | |
"type": "number" | |
} | |
}, | |
"required": [ | |
"count" | |
] | |
}, | |
"links": { | |
"type": "object", | |
"properties": { | |
"first": { | |
"type": "string" | |
}, | |
"prev": { | |
"type": "string", | |
"description": "Omitted if on first page" | |
}, | |
"next": { | |
"type": "string", | |
"description": "Omitted if on last page" | |
}, | |
"last": { | |
"type": "string" | |
} | |
} | |
} | |
}, | |
"required": [ | |
"data", | |
"meta" | |
] | |
} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Fetch Collection", | |
"operationId": "Fetch Collection", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"post": { | |
"responses": { | |
"201": { | |
"description": "Created", | |
"headers": {}, | |
"examples": {} | |
}, | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"409": { | |
"description": "Conflict", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Create Resource", | |
"operationId": "Create Resource", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
} | |
}, | |
"/group-categories/{id}": { | |
"get": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"data": { | |
"id": "1", | |
"type": "groupCategories", | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-categories/1" | |
}, | |
"attributes": { | |
"createdAt": "2017-03-12T06:24:28.884Z", | |
"updatedAt": "2017-03-12T06:24:28.884Z", | |
"name": "Anime & Manga", | |
"slug": "anime-manga", | |
"description": null | |
} | |
} | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"type": { | |
"type": "string" | |
}, | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
} | |
} | |
}, | |
"attributes": { | |
"type": "object", | |
"properties": { | |
"createdAt": { | |
"type": "string", | |
"description": "ISO 8601 date and time" | |
}, | |
"updatedAt": { | |
"type": "string", | |
"description": "ISO 8601 of last modification" | |
}, | |
"name": { | |
"type": "string" | |
}, | |
"slug": { | |
"type": "string" | |
}, | |
"description": { | |
"type": [ | |
"string", | |
"null" | |
] | |
} | |
} | |
} | |
}, | |
"required": [ | |
"id", | |
"type" | |
] | |
} | |
} | |
} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Fetch Resource", | |
"operationId": "Fetch Resource", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "1", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"patch": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": {} | |
}, | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"409": { | |
"description": "Conflict", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Update Resource", | |
"operationId": "Update Resource", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "1", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"delete": { | |
"responses": { | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Delete Resource", | |
"operationId": "Delete Resource", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "1", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
} | |
}, | |
"/group-invites": { | |
"get": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"data": [ | |
{ | |
"id": "28", | |
"type": "groupInvites", | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-invites/28" | |
}, | |
"attributes": { | |
"createdAt": "2017-03-12T16:55:27.999Z", | |
"updatedAt": "2017-03-12T19:45:12.292Z", | |
"acceptedAt": "2017-03-12T19:45:12.186Z", | |
"declinedAt": null, | |
"revokedAt": null | |
}, | |
"relationships": { | |
"user": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-invites/28/relationships/user", | |
"related": "https://kitsu.io/api/edge/group-invites/28/user" | |
} | |
}, | |
"group": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-invites/28/relationships/group", | |
"related": "https://kitsu.io/api/edge/group-invites/28/group" | |
} | |
}, | |
"sender": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-invites/28/relationships/sender", | |
"related": "https://kitsu.io/api/edge/group-invites/28/sender" | |
} | |
} | |
} | |
} | |
], | |
"meta": { | |
"count": 1 | |
}, | |
"links": { | |
"first": "https://kitsu.io/api/edge/group-invites?page%5Blimit%5D=10&page%5Boffset%5D=0", | |
"prev": "https://kitsu.io/api/edge/group-invites?page%5Blimit%5D=10&page%5Boffset%5D=0", | |
"next": "https://kitsu.io/api/edge/group-invites?page%5Blimit%5D=10&page%5Boffset%5D=10", | |
"last": "https://kitsu.io/api/edge/group-invites?page%5Blimit%5D=10&page%5Boffset%5D=0" | |
} | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "array", | |
"items": {} | |
}, | |
"meta": { | |
"type": "object", | |
"properties": { | |
"count": { | |
"type": "number" | |
} | |
}, | |
"required": [ | |
"count" | |
] | |
}, | |
"links": { | |
"type": "object", | |
"properties": { | |
"first": { | |
"type": "string" | |
}, | |
"prev": { | |
"type": "string", | |
"description": "Omitted if on first page" | |
}, | |
"next": { | |
"type": "string", | |
"description": "Omitted if on last page" | |
}, | |
"last": { | |
"type": "string" | |
} | |
} | |
} | |
}, | |
"required": [ | |
"data", | |
"meta" | |
] | |
} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Fetch Collection", | |
"operationId": "Fetch Collection", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"post": { | |
"responses": { | |
"201": { | |
"description": "Created", | |
"headers": {}, | |
"examples": {} | |
}, | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"409": { | |
"description": "Conflict", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Create Resource", | |
"operationId": "Create Resource", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
} | |
}, | |
"/group-invites/{id}": { | |
"get": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"data": { | |
"id": "28", | |
"type": "groupInvites", | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-invites/28" | |
}, | |
"attributes": { | |
"createdAt": "2017-03-12T16:55:27.999Z", | |
"updatedAt": "2017-03-12T19:45:12.292Z", | |
"acceptedAt": "2017-03-12T19:45:12.186Z", | |
"declinedAt": null, | |
"revokedAt": null | |
}, | |
"relationships": { | |
"user": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-invites/28/relationships/user", | |
"related": "https://kitsu.io/api/edge/group-invites/28/user" | |
} | |
}, | |
"group": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-invites/28/relationships/group", | |
"related": "https://kitsu.io/api/edge/group-invites/28/group" | |
} | |
}, | |
"sender": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-invites/28/relationships/sender", | |
"related": "https://kitsu.io/api/edge/group-invites/28/sender" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"type": { | |
"type": "string" | |
}, | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
} | |
} | |
}, | |
"attributes": { | |
"type": "object", | |
"properties": { | |
"createdAt": { | |
"type": "string", | |
"description": "ISO 8601 date and time" | |
}, | |
"updatedAt": { | |
"type": "string", | |
"description": "ISO 8601 of last modification" | |
}, | |
"acceptedAt": { | |
"type": "string" | |
}, | |
"declinedAt": { | |
"type": [ | |
"string", | |
"null" | |
] | |
}, | |
"revokedAt": { | |
"type": [ | |
"string", | |
"null" | |
] | |
} | |
} | |
}, | |
"relationships": { | |
"type": "object", | |
"properties": { | |
"user": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
}, | |
"group": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
}, | |
"sender": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"required": [ | |
"id", | |
"type" | |
] | |
} | |
} | |
} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Fetch Resource", | |
"operationId": "Fetch Resource", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "28", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"patch": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": {} | |
}, | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"409": { | |
"description": "Conflict", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Update Resource", | |
"operationId": "Update Resource", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "28", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"delete": { | |
"responses": { | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Delete Resource", | |
"operationId": "Delete Resource", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "28", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
} | |
}, | |
"/group-member-notes": { | |
"get": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"data": [ | |
{ | |
"id": "1", | |
"type": "groupMemberNotes", | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-member-notes/1" | |
}, | |
"attributes": { | |
"createdAt": "2017-03-12T16:55:27.999Z", | |
"updatedAt": "2017-03-12T19:45:12.292Z", | |
"content": null, | |
"contentFormatted": null | |
}, | |
"relationships": { | |
"groupMember": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-member-notes/1/relationships/groupMember", | |
"related": "https://kitsu.io/api/edge/group-member-notes/1/groupMember" | |
} | |
}, | |
"user": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-member-notes/1/relationships/user", | |
"related": "https://kitsu.io/api/edge/group-member-notes/1/user" | |
} | |
} | |
} | |
} | |
], | |
"meta": { | |
"count": 1 | |
}, | |
"links": { | |
"first": "https://kitsu.io/api/edge/group-member-notes?page%5Blimit%5D=10&page%5Boffset%5D=0", | |
"prev": "https://kitsu.io/api/edge/group-member-notes?page%5Blimit%5D=10&page%5Boffset%5D=0", | |
"next": "https://kitsu.io/api/edge/group-member-notes?page%5Blimit%5D=10&page%5Boffset%5D=10", | |
"last": "https://kitsu.io/api/edge/group-member-notes?page%5Blimit%5D=10&page%5Boffset%5D=0" | |
} | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "array", | |
"items": {} | |
}, | |
"meta": { | |
"type": "object", | |
"properties": { | |
"count": { | |
"type": "number" | |
} | |
}, | |
"required": [ | |
"count" | |
] | |
}, | |
"links": { | |
"type": "object", | |
"properties": { | |
"first": { | |
"type": "string" | |
}, | |
"prev": { | |
"type": "string", | |
"description": "Omitted if on first page" | |
}, | |
"next": { | |
"type": "string", | |
"description": "Omitted if on last page" | |
}, | |
"last": { | |
"type": "string" | |
} | |
} | |
} | |
}, | |
"required": [ | |
"data", | |
"meta" | |
] | |
} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Fetch Collection", | |
"operationId": "Fetch Collection", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"post": { | |
"responses": { | |
"201": { | |
"description": "Created", | |
"headers": {}, | |
"examples": {} | |
}, | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"409": { | |
"description": "Conflict", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Create Resource", | |
"operationId": "Create Resource", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
} | |
}, | |
"/group-member-notes/{id}": { | |
"get": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"data": { | |
"id": "1", | |
"type": "groupMemberNotes", | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-member-notes/1" | |
}, | |
"attributes": { | |
"createdAt": "2017-03-12T16:55:27.999Z", | |
"updatedAt": "2017-03-12T19:45:12.292Z", | |
"content": null, | |
"contentFormatted": null | |
}, | |
"relationships": { | |
"groupMember": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-member-notes/1/relationships/groupMember", | |
"related": "https://kitsu.io/api/edge/group-member-notes/1/groupMember" | |
} | |
}, | |
"user": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-member-notes/1/relationships/user", | |
"related": "https://kitsu.io/api/edge/group-member-notes/1/user" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"type": { | |
"type": "string" | |
}, | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
} | |
} | |
}, | |
"attributes": { | |
"type": "object", | |
"properties": { | |
"createdAt": { | |
"type": "string", | |
"description": "ISO 8601 date and time" | |
}, | |
"updatedAt": { | |
"type": "string", | |
"description": "ISO 8601 of last modification" | |
}, | |
"content": { | |
"type": [ | |
"string", | |
"null" | |
] | |
}, | |
"contentFormatted": { | |
"type": [ | |
"string", | |
"null" | |
] | |
} | |
} | |
}, | |
"relationships": { | |
"type": "object", | |
"properties": { | |
"groupMember": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
}, | |
"user": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"required": [ | |
"id", | |
"type" | |
] | |
} | |
} | |
} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Fetch Resource", | |
"operationId": "Fetch Resource", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "1", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"patch": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": {} | |
}, | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"409": { | |
"description": "Conflict", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Update Resource", | |
"operationId": "Update Resource", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "1", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"delete": { | |
"responses": { | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Delete Resource", | |
"operationId": "Delete Resource", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "1", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
} | |
}, | |
"/group-members": { | |
"get": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"data": [ | |
{ | |
"id": "1", | |
"type": "groupMembers", | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-members/1" | |
}, | |
"attributes": { | |
"createdAt": "2015-02-17T21:16:53.211Z", | |
"updatedAt": "2015-02-17T21:16:53.211Z", | |
"rank": "admin", | |
"unreadCount": 16 | |
}, | |
"relationships": { | |
"group": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-members/1/relationships/group", | |
"related": "https://kitsu.io/api/edge/group-members/1/group" | |
} | |
}, | |
"user": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-members/1/relationships/user", | |
"related": "https://kitsu.io/api/edge/group-members/1/user" | |
} | |
}, | |
"permissions": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-members/1/relationships/permissions", | |
"related": "https://kitsu.io/api/edge/group-members/1/permissions" | |
} | |
}, | |
"notes": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-members/1/relationships/notes", | |
"related": "https://kitsu.io/api/edge/group-members/1/notes" | |
} | |
} | |
} | |
} | |
], | |
"meta": { | |
"count": 264193 | |
}, | |
"links": { | |
"first": "https://kitsu.io/api/edge/group-members?page%5Blimit%5D=10&page%5Boffset%5D=0", | |
"prev": "https://kitsu.io/api/edge/group-members?page%5Blimit%5D=10&page%5Boffset%5D=0", | |
"next": "https://kitsu.io/api/edge/group-members?page%5Blimit%5D=10&page%5Boffset%5D=10", | |
"last": "https://kitsu.io/api/edge/group-members?page%5Blimit%5D=10&page%5Boffset%5D=264183" | |
} | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "array", | |
"items": {} | |
}, | |
"meta": { | |
"type": "object", | |
"properties": { | |
"count": { | |
"type": "number" | |
} | |
}, | |
"required": [ | |
"count" | |
] | |
}, | |
"links": { | |
"type": "object", | |
"properties": { | |
"first": { | |
"type": "string" | |
}, | |
"prev": { | |
"type": "string", | |
"description": "Omitted if on first page" | |
}, | |
"next": { | |
"type": "string", | |
"description": "Omitted if on last page" | |
}, | |
"last": { | |
"type": "string" | |
} | |
} | |
} | |
}, | |
"required": [ | |
"data", | |
"meta" | |
] | |
} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Fetch Collection", | |
"operationId": "Fetch Collection", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"post": { | |
"responses": { | |
"201": { | |
"description": "Created", | |
"headers": {}, | |
"examples": {} | |
}, | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"409": { | |
"description": "Conflict", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Create Resource", | |
"operationId": "Create Resource", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
} | |
}, | |
"/group-members/{id}": { | |
"get": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"data": { | |
"id": "1", | |
"type": "groupMembers", | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-members/1" | |
}, | |
"attributes": { | |
"createdAt": "2015-02-17T21:16:53.211Z", | |
"updatedAt": "2015-02-17T21:16:53.211Z", | |
"rank": "admin", | |
"unreadCount": 16 | |
}, | |
"relationships": { | |
"group": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-members/1/relationships/group", | |
"related": "https://kitsu.io/api/edge/group-members/1/group" | |
} | |
}, | |
"user": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-members/1/relationships/user", | |
"related": "https://kitsu.io/api/edge/group-members/1/user" | |
} | |
}, | |
"permissions": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-members/1/relationships/permissions", | |
"related": "https://kitsu.io/api/edge/group-members/1/permissions" | |
} | |
}, | |
"notes": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-members/1/relationships/notes", | |
"related": "https://kitsu.io/api/edge/group-members/1/notes" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"type": { | |
"type": "string" | |
}, | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
} | |
} | |
}, | |
"attributes": { | |
"type": "object", | |
"properties": { | |
"createdAt": { | |
"type": "string", | |
"description": "ISO 8601 date and time" | |
}, | |
"updatedAt": { | |
"type": "string", | |
"description": "ISO 8601 of last modification" | |
}, | |
"rank": { | |
"type": "string", | |
"enum": [ | |
"admin", | |
"mod", | |
"pleb" | |
] | |
}, | |
"unreadCount": { | |
"type": "number", | |
"description": "member's unread posts in group" | |
} | |
} | |
}, | |
"relationships": { | |
"type": "object", | |
"properties": { | |
"group": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
}, | |
"user": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
}, | |
"permissions": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
}, | |
"notes": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"required": [ | |
"id", | |
"type" | |
] | |
} | |
} | |
} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Fetch Resource", | |
"operationId": "Fetch Resource", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "1", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"patch": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": {} | |
}, | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"409": { | |
"description": "Conflict", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Update Resource", | |
"operationId": "Update Resource", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "1", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"delete": { | |
"responses": { | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Delete Resource", | |
"operationId": "Delete Resource", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "1", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
} | |
}, | |
"/group-neighbors": { | |
"get": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"data": [ | |
{ | |
"id": "1", | |
"type": "groupNeighbors", | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-neighbors/1" | |
}, | |
"attributes": { | |
"createdAt": "2017-03-12T07:09:00.302Z", | |
"updatedAt": "2017-03-12T07:09:00.302Z" | |
}, | |
"relationships": { | |
"source": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-neighbors/1/relationships/source", | |
"related": "https://kitsu.io/api/edge/group-neighbors/1/source" | |
} | |
}, | |
"destination": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-neighbors/1/relationships/destination", | |
"related": "https://kitsu.io/api/edge/group-neighbors/1/destination" | |
} | |
} | |
} | |
} | |
], | |
"meta": { | |
"count": 347 | |
}, | |
"links": { | |
"first": "https://kitsu.io/api/edge/group-neighbors?page%5Blimit%5D=10&page%5Boffset%5D=0", | |
"prev": "https://kitsu.io/api/edge/group-neighbors?page%5Blimit%5D=10&page%5Boffset%5D=0", | |
"next": "https://kitsu.io/api/edge/group-neighbors?page%5Blimit%5D=10&page%5Boffset%5D=10", | |
"last": "https://kitsu.io/api/edge/group-neighbors?page%5Blimit%5D=10&page%5Boffset%5D=337" | |
} | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "array", | |
"items": {} | |
}, | |
"meta": { | |
"type": "object", | |
"properties": { | |
"count": { | |
"type": "number" | |
} | |
}, | |
"required": [ | |
"count" | |
] | |
}, | |
"links": { | |
"type": "object", | |
"properties": { | |
"first": { | |
"type": "string" | |
}, | |
"prev": { | |
"type": "string", | |
"description": "Omitted if on first page" | |
}, | |
"next": { | |
"type": "string", | |
"description": "Omitted if on last page" | |
}, | |
"last": { | |
"type": "string" | |
} | |
} | |
} | |
}, | |
"required": [ | |
"data", | |
"meta" | |
] | |
} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Fetch Collection", | |
"operationId": "Fetch Collection", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"post": { | |
"responses": { | |
"201": { | |
"description": "Created", | |
"headers": {}, | |
"examples": {} | |
}, | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"409": { | |
"description": "Conflict", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Create Resource", | |
"operationId": "Create Resource", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
} | |
}, | |
"/group-neighbors/{id}": { | |
"get": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"data": { | |
"id": "1", | |
"type": "groupNeighbors", | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-neighbors/1" | |
}, | |
"attributes": { | |
"createdAt": "2017-03-12T07:09:00.302Z", | |
"updatedAt": "2017-03-12T07:09:00.302Z" | |
}, | |
"relationships": { | |
"source": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-neighbors/1/relationships/source", | |
"related": "https://kitsu.io/api/edge/group-neighbors/1/source" | |
} | |
}, | |
"destination": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-neighbors/1/relationships/destination", | |
"related": "https://kitsu.io/api/edge/group-neighbors/1/destination" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"type": { | |
"type": "string" | |
}, | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
} | |
} | |
}, | |
"attributes": { | |
"type": "object", | |
"properties": { | |
"createdAt": { | |
"type": "string", | |
"description": "ISO 8601 date and time" | |
}, | |
"updatedAt": { | |
"type": "string", | |
"description": "ISO 8601 of last modification" | |
} | |
} | |
}, | |
"relationships": { | |
"type": "object", | |
"properties": { | |
"source": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
}, | |
"destination": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"required": [ | |
"id", | |
"type" | |
] | |
} | |
} | |
} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Fetch Resource", | |
"operationId": "Fetch Resource", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "1", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"delete": { | |
"responses": { | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Delete Resource", | |
"operationId": "Delete Resource", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "1", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
} | |
}, | |
"/group-permissions": { | |
"get": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"data": [ | |
{ | |
"id": "1", | |
"type": "groupPermissions", | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-permissions/1" | |
}, | |
"attributes": { | |
"createdAt": "2017-03-12T05:12:42.823Z", | |
"updatedAt": "2017-03-12T05:12:42.823Z", | |
"permission": "community" | |
}, | |
"relationships": { | |
"groupMember": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-permissions/1/relationships/group-member", | |
"related": "https://kitsu.io/api/edge/group-permissions/1/group-member" | |
} | |
} | |
} | |
} | |
], | |
"meta": { | |
"count": 5144 | |
}, | |
"links": { | |
"first": "https://kitsu.io/api/edge/group-permissions?page%5Blimit%5D=10&page%5Boffset%5D=0", | |
"prev": "https://kitsu.io/api/edge/group-permissions?page%5Blimit%5D=10&page%5Boffset%5D=0", | |
"next": "https://kitsu.io/api/edge/group-permissions?page%5Blimit%5D=10&page%5Boffset%5D=10", | |
"last": "https://kitsu.io/api/edge/group-permissions?page%5Blimit%5D=10&page%5Boffset%5D=5134" | |
} | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "array", | |
"items": {} | |
}, | |
"meta": { | |
"type": "object", | |
"properties": { | |
"count": { | |
"type": "number" | |
} | |
}, | |
"required": [ | |
"count" | |
] | |
}, | |
"links": { | |
"type": "object", | |
"properties": { | |
"first": { | |
"type": "string" | |
}, | |
"prev": { | |
"type": "string", | |
"description": "Omitted if on first page" | |
}, | |
"next": { | |
"type": "string", | |
"description": "Omitted if on last page" | |
}, | |
"last": { | |
"type": "string" | |
} | |
} | |
} | |
}, | |
"required": [ | |
"data", | |
"meta" | |
] | |
} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Fetch Collection", | |
"operationId": "Fetch Collection", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"post": { | |
"responses": { | |
"201": { | |
"description": "Created", | |
"headers": {}, | |
"examples": {} | |
}, | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"409": { | |
"description": "Conflict", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Create Resource", | |
"operationId": "Create Resource", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
} | |
}, | |
"/group-permissions/{id}": { | |
"get": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"data": { | |
"id": "1", | |
"type": "groupPermissions", | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-permissions/1" | |
}, | |
"attributes": { | |
"createdAt": "2017-03-12T05:12:42.823Z", | |
"updatedAt": "2017-03-12T05:12:42.823Z", | |
"permission": "community" | |
}, | |
"relationships": { | |
"groupMember": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-permissions/1/relationships/group-member", | |
"related": "https://kitsu.io/api/edge/group-permissions/1/group-member" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"type": { | |
"type": "string" | |
}, | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
} | |
} | |
}, | |
"attributes": { | |
"type": "object", | |
"properties": { | |
"createdAt": { | |
"type": "string", | |
"description": "ISO 8601 date and time" | |
}, | |
"updatedAt": { | |
"type": "string", | |
"description": "ISO 8601 of last modification" | |
}, | |
"permission": { | |
"type": "string", | |
"enum": [ | |
"community", | |
"content", | |
"leaders", | |
"owner", | |
"tickets" | |
] | |
} | |
} | |
}, | |
"relationships": { | |
"type": "object", | |
"properties": { | |
"groupMember": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"required": [ | |
"id", | |
"type" | |
] | |
} | |
} | |
} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Fetch Resource", | |
"operationId": "Fetch Resource", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "1", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"delete": { | |
"responses": { | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Delete Resource", | |
"operationId": "Delete Resource", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "1", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
} | |
}, | |
"/group-reports": { | |
"get": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"data": [ | |
{ | |
"id": "1", | |
"type": "groupReports", | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-reports/1" | |
}, | |
"attributes": { | |
"createdAt": "2017-03-12T05:12:42.823Z", | |
"updatedAt": "2017-03-12T05:12:42.823Z", | |
"reason": "nsfw", | |
"status": "reported", | |
"explanation": null, | |
"naughtyType": "Comment", | |
"naughtyId": 1 | |
}, | |
"relationships": { | |
"group": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-reports/1/relationships/group", | |
"related": "https://kitsu.io/api/edge/group-reports/1/group" | |
} | |
}, | |
"naughty": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-reports/1/relationships/naughty", | |
"related": "https://kitsu.io/api/edge/group-reports/1/naughty" | |
} | |
}, | |
"user": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-reports/1/relationships/user", | |
"related": "https://kitsu.io/api/edge/group-reports/1/user" | |
} | |
}, | |
"moderator": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-reports/1/relationships/moderator", | |
"related": "https://kitsu.io/api/edge/group-reports/1/moderator" | |
} | |
} | |
} | |
} | |
], | |
"meta": { | |
"count": 1 | |
}, | |
"links": { | |
"first": "https://kitsu.io/api/edge/group-reports?page%5Blimit%5D=10&page%5Boffset%5D=0", | |
"prev": "https://kitsu.io/api/edge/group-reports?page%5Blimit%5D=10&page%5Boffset%5D=0", | |
"next": "https://kitsu.io/api/edge/group-reports?page%5Blimit%5D=10&page%5Boffset%5D=10", | |
"last": "https://kitsu.io/api/edge/group-reports?page%5Blimit%5D=10&page%5Boffset%5D=0" | |
} | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "array", | |
"items": {} | |
}, | |
"meta": { | |
"type": "object", | |
"properties": { | |
"count": { | |
"type": "number" | |
} | |
}, | |
"required": [ | |
"count" | |
] | |
}, | |
"links": { | |
"type": "object", | |
"properties": { | |
"first": { | |
"type": "string" | |
}, | |
"prev": { | |
"type": "string", | |
"description": "Omitted if on first page" | |
}, | |
"next": { | |
"type": "string", | |
"description": "Omitted if on last page" | |
}, | |
"last": { | |
"type": "string" | |
} | |
} | |
} | |
}, | |
"required": [ | |
"data", | |
"meta" | |
] | |
} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Fetch Collection", | |
"operationId": "Fetch Collection", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"post": { | |
"responses": { | |
"201": { | |
"description": "Created", | |
"headers": {}, | |
"examples": {} | |
}, | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"409": { | |
"description": "Conflict", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Create Resource", | |
"operationId": "Create Resource", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
} | |
}, | |
"/group-reports/{id}": { | |
"get": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"data": { | |
"id": "1", | |
"type": "groupReports", | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-reports/1" | |
}, | |
"attributes": { | |
"createdAt": "2017-03-12T05:12:42.823Z", | |
"updatedAt": "2017-03-12T05:12:42.823Z", | |
"reason": "nsfw", | |
"status": "reported", | |
"explanation": null, | |
"naughtyType": "Comment", | |
"naughtyId": 1 | |
}, | |
"relationships": { | |
"group": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-reports/1/relationships/group", | |
"related": "https://kitsu.io/api/edge/group-reports/1/group" | |
} | |
}, | |
"naughty": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-reports/1/relationships/naughty", | |
"related": "https://kitsu.io/api/edge/group-reports/1/naughty" | |
} | |
}, | |
"user": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-reports/1/relationships/user", | |
"related": "https://kitsu.io/api/edge/group-reports/1/user" | |
} | |
}, | |
"moderator": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-reports/1/relationships/moderator", | |
"related": "https://kitsu.io/api/edge/group-reports/1/moderator" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"type": { | |
"type": "string" | |
}, | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
} | |
} | |
}, | |
"attributes": { | |
"type": "object", | |
"properties": { | |
"createdAt": { | |
"type": "string", | |
"description": "ISO 8601 date and time" | |
}, | |
"updatedAt": { | |
"type": "string", | |
"description": "ISO 8601 of last modification" | |
}, | |
"reason": { | |
"type": "string", | |
"enum": [ | |
"nsfw", | |
"offensive", | |
"spoiler", | |
"bullying", | |
"other", | |
"spam" | |
] | |
}, | |
"status": { | |
"type": "string", | |
"enum": [ | |
"reported", | |
"resolved", | |
"declined", | |
"escalated" | |
] | |
}, | |
"explanation": { | |
"type": [ | |
"string", | |
"null" | |
] | |
}, | |
"naughtyType": { | |
"type": "string" | |
}, | |
"naughtyId": { | |
"type": "number" | |
} | |
} | |
}, | |
"relationships": { | |
"type": "object", | |
"properties": { | |
"group": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
}, | |
"naughty": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
}, | |
"user": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
}, | |
"moderator": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"required": [ | |
"id", | |
"type" | |
] | |
} | |
} | |
} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Fetch Resource", | |
"operationId": "Fetch Resource", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "1", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"patch": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": {} | |
}, | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"409": { | |
"description": "Conflict", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Update Resource", | |
"operationId": "Update Resource", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "1", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
} | |
}, | |
"/group-ticket-messages": { | |
"get": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"data": [ | |
{ | |
"id": "89", | |
"type": "groupTicketMessages", | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-ticket-messages/89" | |
}, | |
"attributes": { | |
"createdAt": "2017-06-16T09:11:46.241Z", | |
"updatedAt": "2017-06-16T09:11:46.241Z", | |
"kind": "message", | |
"content": "Could u please add this recap episode to the series..." | |
}, | |
"relationships": { | |
"ticket": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-ticket-messages/89/relationships/ticket", | |
"related": "https://kitsu.io/api/edge/group-ticket-messages/89/ticket" | |
} | |
}, | |
"user": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-ticket-messages/89/relationships/user", | |
"related": "https://kitsu.io/api/edge/group-ticket-messages/89/user" | |
} | |
} | |
} | |
} | |
], | |
"meta": { | |
"count": 2 | |
}, | |
"links": { | |
"first": "https://kitsu.io/api/edge/group-ticket-messages?page%5Blimit%5D=10&page%5Boffset%5D=0", | |
"prev": "https://kitsu.io/api/edge/group-ticket-messages?page%5Blimit%5D=10&page%5Boffset%5D=0", | |
"next": "https://kitsu.io/api/edge/group-ticket-messages?page%5Blimit%5D=10&page%5Boffset%5D=10", | |
"last": "https://kitsu.io/api/edge/group-ticket-messages?page%5Blimit%5D=10&page%5Boffset%5D=0" | |
} | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "array", | |
"items": {} | |
}, | |
"meta": { | |
"type": "object", | |
"properties": { | |
"count": { | |
"type": "number" | |
} | |
}, | |
"required": [ | |
"count" | |
] | |
}, | |
"links": { | |
"type": "object", | |
"properties": { | |
"first": { | |
"type": "string" | |
}, | |
"prev": { | |
"type": "string", | |
"description": "Omitted if on first page" | |
}, | |
"next": { | |
"type": "string", | |
"description": "Omitted if on last page" | |
}, | |
"last": { | |
"type": "string" | |
} | |
} | |
} | |
}, | |
"required": [ | |
"data", | |
"meta" | |
] | |
} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Fetch Collection", | |
"operationId": "Fetch Collection", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"post": { | |
"responses": { | |
"201": { | |
"description": "Created", | |
"headers": {}, | |
"examples": {} | |
}, | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"409": { | |
"description": "Conflict", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Create Resource", | |
"operationId": "Create Resource", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
} | |
}, | |
"/group-ticket-messages/{id}": { | |
"get": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"data": { | |
"id": "89", | |
"type": "groupTicketMessages", | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-ticket-messages/89" | |
}, | |
"attributes": { | |
"createdAt": "2017-06-16T09:11:46.241Z", | |
"updatedAt": "2017-06-16T09:11:46.241Z", | |
"kind": "message", | |
"content": "Could u please add this recap episode to the series..." | |
}, | |
"relationships": { | |
"ticket": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-ticket-messages/89/relationships/ticket", | |
"related": "https://kitsu.io/api/edge/group-ticket-messages/89/ticket" | |
} | |
}, | |
"user": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-ticket-messages/89/relationships/user", | |
"related": "https://kitsu.io/api/edge/group-ticket-messages/89/user" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"type": { | |
"type": "string" | |
}, | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
} | |
} | |
}, | |
"attributes": { | |
"type": "object", | |
"properties": { | |
"createdAt": { | |
"type": "string", | |
"description": "ISO 8601 date and time" | |
}, | |
"updatedAt": { | |
"type": "string", | |
"description": "ISO 8601 of last modification" | |
}, | |
"kind": { | |
"type": "string", | |
"enum": [ | |
"message", | |
"mod_note" | |
] | |
}, | |
"content": { | |
"type": "string" | |
} | |
} | |
}, | |
"relationships": { | |
"type": "object", | |
"properties": { | |
"ticket": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
}, | |
"user": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"required": [ | |
"id", | |
"type" | |
] | |
} | |
} | |
} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Fetch Resource", | |
"operationId": "Fetch Resource", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "89", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"patch": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": {} | |
}, | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"409": { | |
"description": "Conflict", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Update Resource", | |
"operationId": "Update Resource", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "89", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"delete": { | |
"responses": { | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Delete Resource", | |
"operationId": "Delete Resource", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "89", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
} | |
}, | |
"/group-tickets": { | |
"get": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"data": [ | |
{ | |
"id": "41", | |
"type": "groupTickets", | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-tickets/41" | |
}, | |
"attributes": { | |
"createdAt": "2017-06-16T09:11:46.042Z", | |
"updatedAt": "2017-07-24T20:02:51.697Z", | |
"status": "resolved" | |
}, | |
"relationships": { | |
"user": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-tickets/41/relationships/user", | |
"related": "https://kitsu.io/api/edge/group-tickets/41/user" | |
} | |
}, | |
"group": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-tickets/41/relationships/group", | |
"related": "https://kitsu.io/api/edge/group-tickets/41/group" | |
} | |
}, | |
"assignee": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-tickets/41/relationships/assignee", | |
"related": "https://kitsu.io/api/edge/group-tickets/41/assignee" | |
} | |
}, | |
"messages": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-tickets/41/relationships/messages", | |
"related": "https://kitsu.io/api/edge/group-tickets/41/messages" | |
} | |
}, | |
"firstMessage": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-tickets/41/relationships/firstMessage", | |
"related": "https://kitsu.io/api/edge/group-tickets/41/firstMessage" | |
} | |
} | |
} | |
} | |
], | |
"meta": { | |
"count": 2 | |
}, | |
"links": { | |
"first": "https://kitsu.io/api/edge/group-tickets?page%5Blimit%5D=10&page%5Boffset%5D=0", | |
"prev": "https://kitsu.io/api/edge/group-tickets?page%5Blimit%5D=10&page%5Boffset%5D=0", | |
"next": "https://kitsu.io/api/edge/group-tickets?page%5Blimit%5D=10&page%5Boffset%5D=10", | |
"last": "https://kitsu.io/api/edge/group-tickets?page%5Blimit%5D=10&page%5Boffset%5D=0" | |
} | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "array", | |
"items": {} | |
}, | |
"meta": { | |
"type": "object", | |
"properties": { | |
"count": { | |
"type": "number" | |
} | |
}, | |
"required": [ | |
"count" | |
] | |
}, | |
"links": { | |
"type": "object", | |
"properties": { | |
"first": { | |
"type": "string" | |
}, | |
"prev": { | |
"type": "string", | |
"description": "Omitted if on first page" | |
}, | |
"next": { | |
"type": "string", | |
"description": "Omitted if on last page" | |
}, | |
"last": { | |
"type": "string" | |
} | |
} | |
} | |
}, | |
"required": [ | |
"data", | |
"meta" | |
] | |
} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Fetch Collection", | |
"operationId": "Fetch Collection", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"post": { | |
"responses": { | |
"201": { | |
"description": "Created", | |
"headers": {}, | |
"examples": {} | |
}, | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"409": { | |
"description": "Conflict", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Create Resource", | |
"operationId": "Create Resource", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
} | |
}, | |
"/group-tickets/{id}": { | |
"get": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"data": { | |
"id": "41", | |
"type": "groupTickets", | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-tickets/41" | |
}, | |
"attributes": { | |
"createdAt": "2017-06-16T09:11:46.042Z", | |
"updatedAt": "2017-07-24T20:02:51.697Z", | |
"status": "resolved" | |
}, | |
"relationships": { | |
"user": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-tickets/41/relationships/user", | |
"related": "https://kitsu.io/api/edge/group-tickets/41/user" | |
} | |
}, | |
"group": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-tickets/41/relationships/group", | |
"related": "https://kitsu.io/api/edge/group-tickets/41/group" | |
} | |
}, | |
"assignee": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-tickets/41/relationships/assignee", | |
"related": "https://kitsu.io/api/edge/group-tickets/41/assignee" | |
} | |
}, | |
"messages": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-tickets/41/relationships/messages", | |
"related": "https://kitsu.io/api/edge/group-tickets/41/messages" | |
} | |
}, | |
"firstMessage": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/group-tickets/41/relationships/firstMessage", | |
"related": "https://kitsu.io/api/edge/group-tickets/41/firstMessage" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"type": { | |
"type": "string" | |
}, | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
} | |
} | |
}, | |
"attributes": { | |
"type": "object", | |
"properties": { | |
"createdAt": { | |
"type": "string", | |
"description": "ISO 8601 date and time" | |
}, | |
"updatedAt": { | |
"type": "string", | |
"description": "ISO 8601 of last modification" | |
}, | |
"status": { | |
"type": "string", | |
"enum": [ | |
"created", | |
"assigned", | |
"resolved" | |
] | |
} | |
} | |
}, | |
"relationships": { | |
"type": "object", | |
"properties": { | |
"user": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
}, | |
"group": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
}, | |
"assignee": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
}, | |
"messages": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
}, | |
"firstMessage": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"required": [ | |
"id", | |
"type" | |
] | |
} | |
} | |
} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Fetch Resource", | |
"operationId": "Fetch Resource", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "41", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"patch": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": {} | |
}, | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"409": { | |
"description": "Conflict", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Update Resource", | |
"operationId": "Update Resource", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "41", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
} | |
}, | |
"/groups": { | |
"get": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"data": [ | |
{ | |
"id": "1", | |
"type": "groups", | |
"links": { | |
"self": "https://kitsu.io/api/edge/groups/1" | |
}, | |
"attributes": { | |
"createdAt": "2015-02-17T21:16:53.207Z", | |
"updatedAt": "2017-10-26T20:51:24.215Z", | |
"slug": "one-piece-group", | |
"about": "Group for fans of the One Piece anime and or manga...", | |
"locale": null, | |
"membersCount": 548, | |
"name": "One Piece group", | |
"nsfw": false, | |
"privacy": "open", | |
"rules": null, | |
"rulesFormatted": null, | |
"leadersCount": 2, | |
"neighborsCount": 0, | |
"featured": false, | |
"tagline": null, | |
"lastActivityAt": "2017-10-26T17:56:45.259Z", | |
"avatar": { | |
"tiny": "https://media.kitsu.io/groups/avatars/1/tiny.gif?1424323296", | |
"small": "https://media.kitsu.io/groups/avatars/1/small.gif?1424323296", | |
"medium": "https://media.kitsu.io/groups/avatars/1/medium.gif?1424323296", | |
"large": "https://media.kitsu.io/groups/avatars/1/large.gif?1424323296", | |
"original": "https://media.kitsu.io/groups/avatars/1/original.gif?1424323296", | |
"meta": { | |
"dimensions": { | |
"tiny": { | |
"width": null, | |
"height": null | |
}, | |
"small": { | |
"width": null, | |
"height": null | |
}, | |
"medium": { | |
"width": null, | |
"height": null | |
}, | |
"large": { | |
"width": null, | |
"height": null | |
} | |
} | |
} | |
}, | |
"coverImage": { | |
"tiny": "https://media.kitsu.io/groups/cover_images/1/tiny.jpg?1424209483", | |
"small": "https://media.kitsu.io/groups/cover_images/1/small.jpg?1424209483", | |
"large": "https://media.kitsu.io/groups/cover_images/1/large.jpg?1424209483", | |
"original": "https://media.kitsu.io/groups/cover_images/1/original.jpeg?1424209483", | |
"meta": { | |
"dimensions": { | |
"tiny": { | |
"width": null, | |
"height": null | |
}, | |
"small": { | |
"width": null, | |
"height": null | |
}, | |
"large": { | |
"width": null, | |
"height": null | |
} | |
} | |
} | |
} | |
}, | |
"relationships": { | |
"members": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/groups/1/relationships/members", | |
"related": "https://kitsu.io/api/edge/groups/1/members" | |
} | |
}, | |
"neighbors": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/groups/1/relationships/neighbors", | |
"related": "https://kitsu.io/api/edge/groups/1/neighbors" | |
} | |
}, | |
"tickets": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/groups/1/relationships/tickets", | |
"related": "https://kitsu.io/api/edge/groups/1/tickets" | |
} | |
}, | |
"invites": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/groups/1/relationships/invites", | |
"related": "https://kitsu.io/api/edge/groups/1/invites" | |
} | |
}, | |
"reports": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/groups/1/relationships/reports", | |
"related": "https://kitsu.io/api/edge/groups/1/reports" | |
} | |
}, | |
"leaderChatMessages": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/groups/1/relationships/leader-chat-messages", | |
"related": "https://kitsu.io/api/edge/groups/1/leader-chat-messages" | |
} | |
}, | |
"actionLogs": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/groups/1/relationships/action-logs", | |
"related": "https://kitsu.io/api/edge/groups/1/action-logs" | |
} | |
}, | |
"category": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/groups/1/relationships/category", | |
"related": "https://kitsu.io/api/edge/groups/1/category" | |
} | |
}, | |
"pinnedPost": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/groups/1/relationships/pinned-post", | |
"related": "https://kitsu.io/api/edge/groups/1/pinned-post" | |
} | |
} | |
} | |
} | |
], | |
"meta": { | |
"count": 1998 | |
}, | |
"links": { | |
"first": "https://kitsu.io/api/edge/groups?page%5Blimit%5D=10&page%5Boffset%5D=0", | |
"prev": "https://kitsu.io/api/edge/groups?page%5Blimit%5D=10&page%5Boffset%5D=0", | |
"next": "https://kitsu.io/api/edge/groups?page%5Blimit%5D=10&page%5Boffset%5D=10", | |
"last": "https://kitsu.io/api/edge/groups?page%5Blimit%5D=10&page%5Boffset%5D=1988" | |
} | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "array", | |
"items": {} | |
}, | |
"meta": { | |
"type": "object", | |
"properties": { | |
"count": { | |
"type": "number" | |
} | |
}, | |
"required": [ | |
"count" | |
] | |
}, | |
"links": { | |
"type": "object", | |
"properties": { | |
"first": { | |
"type": "string" | |
}, | |
"prev": { | |
"type": "string", | |
"description": "Omitted if on first page" | |
}, | |
"next": { | |
"type": "string", | |
"description": "Omitted if on last page" | |
}, | |
"last": { | |
"type": "string" | |
} | |
} | |
} | |
}, | |
"required": [ | |
"data", | |
"meta" | |
] | |
} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Fetch Collection", | |
"operationId": "Fetch Collection", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"post": { | |
"responses": { | |
"201": { | |
"description": "Created", | |
"headers": {}, | |
"examples": {} | |
}, | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"409": { | |
"description": "Conflict", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Create Resource", | |
"operationId": "Create Resource", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
} | |
}, | |
"/groups/{id}": { | |
"get": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"data": { | |
"id": "1", | |
"type": "groups", | |
"links": { | |
"self": "https://kitsu.io/api/edge/groups/1" | |
}, | |
"attributes": { | |
"createdAt": "2015-02-17T21:16:53.207Z", | |
"updatedAt": "2017-10-26T20:51:24.215Z", | |
"slug": "one-piece-group", | |
"about": "Group for fans of the One Piece anime and or manga...", | |
"locale": null, | |
"membersCount": 548, | |
"name": "One Piece group", | |
"nsfw": false, | |
"privacy": "open", | |
"rules": null, | |
"rulesFormatted": null, | |
"leadersCount": 2, | |
"neighborsCount": 0, | |
"featured": false, | |
"tagline": null, | |
"lastActivityAt": "2017-10-26T17:56:45.259Z", | |
"avatar": { | |
"tiny": "https://media.kitsu.io/groups/avatars/1/tiny.gif?1424323296", | |
"small": "https://media.kitsu.io/groups/avatars/1/small.gif?1424323296", | |
"medium": "https://media.kitsu.io/groups/avatars/1/medium.gif?1424323296", | |
"large": "https://media.kitsu.io/groups/avatars/1/large.gif?1424323296", | |
"original": "https://media.kitsu.io/groups/avatars/1/original.gif?1424323296", | |
"meta": { | |
"dimensions": { | |
"tiny": { | |
"width": null, | |
"height": null | |
}, | |
"small": { | |
"width": null, | |
"height": null | |
}, | |
"medium": { | |
"width": null, | |
"height": null | |
}, | |
"large": { | |
"width": null, | |
"height": null | |
} | |
} | |
} | |
}, | |
"coverImage": { | |
"tiny": "https://media.kitsu.io/groups/cover_images/1/tiny.jpg?1424209483", | |
"small": "https://media.kitsu.io/groups/cover_images/1/small.jpg?1424209483", | |
"large": "https://media.kitsu.io/groups/cover_images/1/large.jpg?1424209483", | |
"original": "https://media.kitsu.io/groups/cover_images/1/original.jpeg?1424209483", | |
"meta": { | |
"dimensions": { | |
"tiny": { | |
"width": null, | |
"height": null | |
}, | |
"small": { | |
"width": null, | |
"height": null | |
}, | |
"large": { | |
"width": null, | |
"height": null | |
} | |
} | |
} | |
} | |
}, | |
"relationships": { | |
"members": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/groups/1/relationships/members", | |
"related": "https://kitsu.io/api/edge/groups/1/members" | |
} | |
}, | |
"neighbors": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/groups/1/relationships/neighbors", | |
"related": "https://kitsu.io/api/edge/groups/1/neighbors" | |
} | |
}, | |
"tickets": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/groups/1/relationships/tickets", | |
"related": "https://kitsu.io/api/edge/groups/1/tickets" | |
} | |
}, | |
"invites": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/groups/1/relationships/invites", | |
"related": "https://kitsu.io/api/edge/groups/1/invites" | |
} | |
}, | |
"reports": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/groups/1/relationships/reports", | |
"related": "https://kitsu.io/api/edge/groups/1/reports" | |
} | |
}, | |
"leaderChatMessages": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/groups/1/relationships/leader-chat-messages", | |
"related": "https://kitsu.io/api/edge/groups/1/leader-chat-messages" | |
} | |
}, | |
"actionLogs": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/groups/1/relationships/action-logs", | |
"related": "https://kitsu.io/api/edge/groups/1/action-logs" | |
} | |
}, | |
"category": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/groups/1/relationships/category", | |
"related": "https://kitsu.io/api/edge/groups/1/category" | |
} | |
}, | |
"pinnedPost": { | |
"links": { | |
"self": "https://kitsu.io/api/edge/groups/1/relationships/pinned-post", | |
"related": "https://kitsu.io/api/edge/groups/1/pinned-post" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"type": { | |
"type": "string" | |
}, | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
} | |
} | |
}, | |
"attributes": { | |
"type": "object", | |
"properties": { | |
"createdAt": { | |
"type": "string", | |
"description": "ISO 8601 date and time" | |
}, | |
"updatedAt": { | |
"type": "string", | |
"description": "ISO 8601 of last modification" | |
}, | |
"slug": { | |
"type": "string" | |
}, | |
"about": { | |
"type": "string" | |
}, | |
"locale": { | |
"type": [ | |
"string", | |
"null" | |
] | |
}, | |
"membersCount": { | |
"type": "number" | |
}, | |
"name": { | |
"type": "string" | |
}, | |
"nsfw": { | |
"type": "boolean" | |
}, | |
"privacy": { | |
"type": "string", | |
"enum": [ | |
"open", | |
"closed", | |
"restricted" | |
] | |
}, | |
"rules": { | |
"type": [ | |
"string", | |
"null" | |
] | |
}, | |
"rulesFormatted": { | |
"type": [ | |
"string", | |
"null" | |
] | |
}, | |
"leadersCount": { | |
"type": "number" | |
}, | |
"neighborsCount": { | |
"type": "number" | |
}, | |
"featured": { | |
"type": "boolean" | |
}, | |
"tagline": { | |
"type": [ | |
"string", | |
"null" | |
] | |
}, | |
"lastActivityAt": { | |
"type": "string" | |
}, | |
"avatar": { | |
"type": "object", | |
"properties": { | |
"tiny": { | |
"type": "string" | |
}, | |
"small": { | |
"type": "string" | |
}, | |
"medium": { | |
"type": "string" | |
}, | |
"large": { | |
"type": "string" | |
}, | |
"original": { | |
"type": "string" | |
}, | |
"meta": { | |
"type": "object", | |
"properties": { | |
"dimensions": { | |
"type": "object", | |
"properties": { | |
"tiny": { | |
"type": "object", | |
"properties": { | |
"width": { | |
"type": [ | |
"string", | |
"null" | |
] | |
}, | |
"height": { | |
"type": [ | |
"string", | |
"null" | |
] | |
} | |
} | |
}, | |
"small": { | |
"type": "object", | |
"properties": { | |
"width": { | |
"type": [ | |
"string", | |
"null" | |
] | |
}, | |
"height": { | |
"type": [ | |
"string", | |
"null" | |
] | |
} | |
} | |
}, | |
"medium": { | |
"type": "object", | |
"properties": { | |
"width": { | |
"type": [ | |
"string", | |
"null" | |
] | |
}, | |
"height": { | |
"type": [ | |
"string", | |
"null" | |
] | |
} | |
} | |
}, | |
"large": { | |
"type": "object", | |
"properties": { | |
"width": { | |
"type": [ | |
"string", | |
"null" | |
] | |
}, | |
"height": { | |
"type": [ | |
"string", | |
"null" | |
] | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"coverImage": { | |
"type": "object", | |
"properties": { | |
"tiny": { | |
"type": "string" | |
}, | |
"small": { | |
"type": "string" | |
}, | |
"large": { | |
"type": "string" | |
}, | |
"original": { | |
"type": "string" | |
}, | |
"meta": { | |
"type": "object", | |
"properties": { | |
"dimensions": { | |
"type": "object", | |
"properties": { | |
"tiny": { | |
"type": "object", | |
"properties": { | |
"width": { | |
"type": [ | |
"string", | |
"null" | |
] | |
}, | |
"height": { | |
"type": [ | |
"string", | |
"null" | |
] | |
} | |
} | |
}, | |
"small": { | |
"type": "object", | |
"properties": { | |
"width": { | |
"type": [ | |
"string", | |
"null" | |
] | |
}, | |
"height": { | |
"type": [ | |
"string", | |
"null" | |
] | |
} | |
} | |
}, | |
"large": { | |
"type": "object", | |
"properties": { | |
"width": { | |
"type": [ | |
"string", | |
"null" | |
] | |
}, | |
"height": { | |
"type": [ | |
"string", | |
"null" | |
] | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"relationships": { | |
"type": "object", | |
"properties": { | |
"members": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
}, | |
"neighbors": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
}, | |
"tickets": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
}, | |
"invites": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
}, | |
"reports": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
}, | |
"leaderChatMessages": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
}, | |
"actionLogs": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
}, | |
"category": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
}, | |
"pinnedPost": { | |
"type": "object", | |
"properties": { | |
"links": { | |
"type": "object", | |
"properties": { | |
"self": { | |
"type": "string" | |
}, | |
"related": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"required": [ | |
"id", | |
"type" | |
] | |
} | |
} | |
} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Fetch Resource", | |
"operationId": "Fetch Resource", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "1", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"patch": { | |
"responses": { | |
"200": { | |
"description": "OK", | |
"headers": {}, | |
"examples": {} | |
}, | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"403": { | |
"description": "Forbidden", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"409": { | |
"description": "Conflict", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
} | |
}, | |
"summary": "Update Resource", | |
"operationId": "Update Resource", | |
"description": "", | |
"tags": [ | |
"Groups" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "", | |
"required": true, | |
"x-example": "1", | |
"type": "number" | |
} | |
], | |
"produces": [ | |
"application/vnd.api+json" | |
] | |
}, | |
"delete": { | |
"responses": { | |
"202": { | |
"description": "Accepted", | |
"headers": {}, | |
"examples": {} | |
}, | |
"204": { | |
"description": "No Content", | |
"headers": {}, | |
"examples": {} | |
}, | |
"400": { | |
"description": "Bad Request", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"401": { | |
"description": "Unauthorized", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"404": { | |
"description": "Not Found", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": "", | |
"code": "", | |
"status": "", | |
"source": { | |
"pointer": "", | |
"parameter": "" | |
} | |
} | |
] | |
} | |
}, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": {} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Internal Server Error", | |
"headers": {}, | |
"examples": { | |
"application/vnd.api+json": { | |
"errors": [ | |
{ | |
"title": "", | |
"detail": |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment