# yaml-language-server: $schema=https://spec.openapis.org/oas/3.1/schema/2022-10-07 openapi: 3.1.0 info: title: Anilistarr description: |- Converts an Anilist user watching list to a custom list format which *arr apps support. # termsOfService: http://swagger.io/terms/ contact: email: anilistarr@artero.dev license: name: MIT url: https://raw.githubusercontent.com/wwmoraes/anilistarr/master/LICENSE version: 0.1.0 externalDocs: description: Find out more about the project url: http://github.com/wwmoraes/anilistarr servers: - url: https://anilistarr.fly.dev paths: /user/{name}/id: get: operationId: GetUserID parameters: - name: name in: path required: true content: text/plain: example: wwmoraes responses: 200: description: user found headers: X-Anilist-User-Id: $ref: '#/components/headers/X-Anilist-User-Id' X-Anilist-User-Name: $ref: '#/components/headers/X-Anilist-User-Name' content: text/plain: example: 1234 500: description: either a rate limit or other issue with the upstream tracker happened content: text/plain: example: | failed to get user ID: ... /user/{name}/media: get: operationId: GetUserMedia parameters: - name: name in: path required: true content: text/plain: example: wwmoraes responses: 200: description: media list for the given user headers: X-Anilist-User-Id: $ref: '#/components/headers/X-Anilist-User-Id' X-Anilist-User-Name: $ref: '#/components/headers/X-Anilist-User-Name' content: application/json: schema: $ref: '#/components/schemas/CustomList' 500: description: either a rate limit or other issue with the upstream tracker happened content: text/plain: example: |- failed to get user ID: ... components: headers: X-Anilist-User-Id: description: Anilist user identifier schema: type: string X-Anilist-User-Name: description: Anilist user name/handler schema: type: string schemas: CustomList: type: array items: type: object properties: TvdbID: type: number