Advertisement
Guest User

Untitled

a guest
Aug 5th, 2024
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.  * This file was auto-generated by openapi-typescript.
  3.  * Do not make direct changes to the file.
  4.  */
  5.  
  6. export interface paths {
  7.     "/breeds": {
  8.         parameters: {
  9.             query?: never;
  10.             header?: never;
  11.             path?: never;
  12.             cookie?: never;
  13.         };
  14.         /**
  15.          * Get a list of breeds
  16.          * @description Returns a a list of breeds
  17.          */
  18.         get: operations["getBreeds"];
  19.         put?: never;
  20.         post?: never;
  21.         delete?: never;
  22.         options?: never;
  23.         head?: never;
  24.         patch?: never;
  25.         trace?: never;
  26.     };
  27.     "/fact": {
  28.         parameters: {
  29.             query?: never;
  30.             header?: never;
  31.             path?: never;
  32.             cookie?: never;
  33.         };
  34.         /**
  35.          * Get Random Fact
  36.          * @description Returns a random fact
  37.          */
  38.         get: operations["getRandomFact"];
  39.         put?: never;
  40.         post?: never;
  41.         delete?: never;
  42.         options?: never;
  43.         head?: never;
  44.         patch?: never;
  45.         trace?: never;
  46.     };
  47.     "/facts": {
  48.         parameters: {
  49.             query?: never;
  50.             header?: never;
  51.             path?: never;
  52.             cookie?: never;
  53.         };
  54.         /**
  55.          * Get a list of facts
  56.          * @description Returns a a list of facts
  57.          */
  58.         get: operations["getFacts"];
  59.         put?: never;
  60.         post?: never;
  61.         delete?: never;
  62.         options?: never;
  63.         head?: never;
  64.         patch?: never;
  65.         trace?: never;
  66.     };
  67. }
  68. export type webhooks = Record<string, never>;
  69. export interface components {
  70.     schemas: {
  71.         /**
  72.          * Breed model
  73.          * @description Breed
  74.          */
  75.         Breed: {
  76.             /**
  77.              * Breed
  78.              * Format: string
  79.              * @description Breed
  80.              */
  81.             breed?: string;
  82.             /**
  83.              * Country
  84.              * Format: string
  85.              * @description Country
  86.              */
  87.             country?: string;
  88.             /**
  89.              * Origin
  90.              * Format: string
  91.              * @description Origin
  92.              */
  93.             origin?: string;
  94.             /**
  95.              * Coat
  96.              * Format: string
  97.              * @description Coat
  98.              */
  99.             coat?: string;
  100.             /**
  101.              * Pattern
  102.              * Format: string
  103.              * @description Pattern
  104.              */
  105.             pattern?: string;
  106.         };
  107.         /**
  108.          * CatFact model
  109.          * @description CatFact
  110.          */
  111.         CatFact: {
  112.             /**
  113.              * Fact
  114.              * Format: string
  115.              * @description Fact
  116.              */
  117.             fact?: string;
  118.             /**
  119.              * Length
  120.              * Format: int32
  121.              * @description Length
  122.              */
  123.             length?: number;
  124.         };
  125.         Error: {
  126.             code: number;
  127.             message: string;
  128.         };
  129.         ErrorUnauthorized: {
  130.             code: 'ErrorUnauthorized';
  131.             message: string;
  132.         };
  133.         ErrorForbidden: {
  134.             code: 'ErrorForbidden';
  135.             message: string;
  136.         };
  137.     };
  138.     responses: never;
  139.     parameters: never;
  140.     requestBodies: never;
  141.     headers: never;
  142.     pathItems: never;
  143. }
  144. export type $defs = Record<string, never>;
  145. export interface operations {
  146.     getBreeds: {
  147.         parameters: {
  148.             query?: {
  149.                 /** @description limit the amount of results returned */
  150.                 limit?: number;
  151.             };
  152.             header?: never;
  153.             path?: never;
  154.             cookie?: never;
  155.         };
  156.         requestBody?: never;
  157.         responses: {
  158.             /** @description successful operation */
  159.             200: {
  160.                 headers: {
  161.                     [name: string]: unknown;
  162.                 };
  163.                 content: {
  164.                     "application/json": components["schemas"]["Breed"][];
  165.                 };
  166.             };
  167.             /** @description error */
  168.             default: {
  169.                 headers: {
  170.                     [name: string]: unknown;
  171.                 };
  172.                 content: {
  173.                     "application/json": components["schemas"]["Error"];
  174.                 };
  175.             };
  176.         };
  177.     };
  178.     getRandomFact: {
  179.         parameters: {
  180.             query?: {
  181.                 /** @description maximum length of returned fact */
  182.                 max_length?: number;
  183.             };
  184.             header?: never;
  185.             path?: never;
  186.             cookie?: never;
  187.         };
  188.         requestBody?: never;
  189.         responses: {
  190.             /** @description successful operation */
  191.             200: {
  192.                 headers: {
  193.                     [name: string]: unknown;
  194.                 };
  195.                 content: {
  196.                     "application/json": components["schemas"]["CatFact"];
  197.                 };
  198.             };
  199.  
  200.             /** @description error 401 */
  201.             401: {
  202.                 headers: {
  203.                     [name: string]: unknown;
  204.                 };
  205.                 content: {
  206.                     "application/json": components["schemas"]["ErrorUnauthorized"];
  207.                 };
  208.             };
  209.             /** @description error 403 */
  210.             403: {
  211.                 headers: {
  212.                     [name: string]: unknown;
  213.                 };
  214.                 content: {
  215.                     "application/json": components["schemas"]["ErrorForbidden"];
  216.                 };
  217.             };
  218.             /** @description not found */
  219.             404: {
  220.                 headers: {
  221.                     [name: string]: unknown;
  222.                 };
  223.                 content: {
  224.                     "application/json": components["schemas"]["Error"];
  225.                 };
  226.             };
  227.             };
  228.             /** @description error */
  229.             default: {
  230.                 headers: {
  231.                     [name: string]: unknown;
  232.                 };
  233.                 content: {
  234.                     "application/json": components["schemas"]["Error"];
  235.                 };
  236.             };
  237.         };
  238.     };
  239.     getFacts: {
  240.         parameters: {
  241.             query?: {
  242.                 /** @description maximum length of returned fact */
  243.                 max_length?: number;
  244.                 /** @description limit the amount of results returned */
  245.                 limit?: number;
  246.             };
  247.             header?: never;
  248.             path?: never;
  249.             cookie?: never;
  250.         };
  251.         requestBody?: never;
  252.         responses: {
  253.             /** @description successful operation */
  254.             200: {
  255.                 headers: {
  256.                     [name: string]: unknown;
  257.                 };
  258.                 content: {
  259.                     "application/json": components["schemas"]["CatFact"][];
  260.                 };
  261.             };
  262.             /** @description error */
  263.             default: {
  264.                 headers: {
  265.                     [name: string]: unknown;
  266.                 };
  267.                 content: {
  268.                     "application/json": components["schemas"]["Error"];
  269.                 };
  270.             };
  271.         };
  272.     };
  273. }
  274.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement