Files
OpenSign/assets/js/0bf33bb2.c44c2db4.js
T

1 line
13 KiB
JavaScript

"use strict";(self.webpackChunkOpenSign_Docs=self.webpackChunkOpenSign_Docs||[]).push([[2592],{86510:(e,s,a)=>{a.r(s),a.d(s,{assets:()=>j,contentTitle:()=>u,default:()=>v,frontMatter:()=>x,metadata:()=>g,toc:()=>f});var i=a(85893),n=a(11151),l=a(58219),t=(a(62316),a(51039)),r=a.n(t),c=(a(82723),a(9487)),d=a(41429),m=a(5397),o=a(4667),p=a(9472),h=a(85162);const x={id:"get-pet-by-id",title:"Find pet by ID",description:"Returns a single pet",sidebar_label:"Find pet by ID",hide_title:!0,hide_table_of_contents:!0,api:"eJztVttu4zYQ/RWCTxvAsZw26INRFE1308DoojHWKXaBxFjQ0sjiRiK5JJXEEPTvnaEkS74VQdvHvNgieWbmcC6cqbgXa8en9zzWyovYO74c8QRcbKXxUis+5Z/Al1Y5JpiTap0DM+D5iGsDVhBkliBoDX4O/rcNLkbcCCsK8GBJc8UVLhDSWvgqCSJJsxE+4/vmZh+YTskG85rZYBsxFr6X0gKa8raEEXdxBoXg04r7jSHtUnlYg0Voqm0hfLP10yWv6yWJO6OVA0cSP0wm9Ldr1pVxDM6lZc62N0NlRBqUJ7wwJpdxOIi+ORKqBjR6gvfNhdENmfb6L5sHn7Y09eobxOQ+Y8mMlw0l9MkrrjLi8CIKkyPoYlKPWsdu5Zy3GKAhiid6vZbAEYvEYa3tZoD/37i8isoHjYlWI/SlyAnZZUXHC0+89AH6frDXO7HXLqwVG77V9GwxNF1qoIj0ULhjZHYtd5qRFNkOdfBvTfwnV55036G3kOXQUXeiATkvfHn0yrtJTlXVYJlUzGeAK20pV0GVBaWueBIyF6s85C+opNHidJ7w5SEdegkGdOa0xPWwUlqBt0J5K5S3QtktFIJdHutFM/UkcpkwbIWupFpChwbs5SEWVTGlPUt1qZLmjhCXVvpN6L3CyK+PQN9L6oPYlTPd9uvQqLEBT3nUtuao6nt0TbcB+9Q18RLjP+WZ98ZNowiDPMb4KSfXCr3gxrEucFNGTxec7HQcFlT2TYi3TPrUMfIPoNxpnfTlfC6sg/Orbj8MCRmIBJOBbiZVqoN868ZbZLBABuxqPmNoeT+Kd5nE+LlwnOi4LLCTh1cJvWXZnjRbCQcJ00246ZD2fxxfMGcglmn7oI3Zg3pQC10AKx3QuJBL9eimD+qc3d+mCJMiZ59h5TD1l+86hz0/Px847CzI3EiflSucdIzu4euwGbw6lNouzvCuOF8V7jZdYJBkDG1wTpiKAjhqBxqMMLkRH2SZ94PZr/tClHP4juMmDFL56mb+Ed0yQV19TryCcvRx9v76z8U1aaWsakJ0MZ6gKnq+tPOFUANDv0uVhDlwtcFK2A9u1Y9mpybUNs08vPjI5AKzqW45V23mb8deRE8H8ylmcIZ8CFBVlBf4+tU1bX8vwYZqwksIK8MDQOWRSEffWFqpyB38A9l3n9oGeMaOj7pHaXclo6gu8HUoaYWfoaKGo3W9RHRbM0SsAVzhcGv8QPRgmN15HW6u7xArSvLRsFwfQ1m2H6T9KK2DOm440G89OiHzMxUbon/ZwpuTkwLtFTs0eQnf3fpvF4pUHA==",sidebar_class_name:"get api-method",info_path:"docs/API-docs/opensign-api-v-1",custom_edit_url:null},u=void 0,g={id:"API-docs/get-pet-by-id",title:"Find pet by ID",description:"Returns a single pet",source:"@site/docs/API-docs/get-pet-by-id.api.mdx",sourceDirName:"API-docs",slug:"/API-docs/get-pet-by-id",permalink:"/docs/API-docs/get-pet-by-id",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",frontMatter:{id:"get-pet-by-id",title:"Find pet by ID",description:"Returns a single pet",sidebar_label:"Find pet by ID",hide_title:!0,hide_table_of_contents:!0,api:"eJztVttu4zYQ/RWCTxvAsZw26INRFE1308DoojHWKXaBxFjQ0sjiRiK5JJXEEPTvnaEkS74VQdvHvNgieWbmcC6cqbgXa8en9zzWyovYO74c8QRcbKXxUis+5Z/Al1Y5JpiTap0DM+D5iGsDVhBkliBoDX4O/rcNLkbcCCsK8GBJc8UV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6T9KK2DOm440G89OiHzMxUbon/ZwpuTkwLtFTs0eQnf3fpvF4pUHA==",sidebar_class_name:"get api-method",info_path:"docs/API-docs/opensign-api-v-1",custom_edit_url:null},sidebar:"apiSidebar",previous:{title:"Returns pet inventories by status",permalink:"/docs/API-docs/get-inventory"},next:{title:"Updates a pet in the store with form data",permalink:"/docs/API-docs/update-pet-with-form"}},j={},f=[{value:"Request",id:"request",level:2}];function y(e){const s={h2:"h2",p:"p",...(0,n.a)(),...e.components},{Details:a}=s;return a||function(e,s){throw new Error("Expected "+(s?"component":"object")+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}("Details",!0),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("h1",{className:"openapi__heading",children:(0,i.jsx)(s.p,{children:"Find pet by ID"})}),"\n",(0,i.jsx)(r(),{method:"get",path:"/contact/{contact_id}"}),"\n",(0,i.jsx)(s.p,{children:"Returns a single pet"}),"\n",(0,i.jsx)(s.h2,{id:"request",children:"Request"}),"\n",(0,i.jsxs)(a,{style:{marginBottom:"1rem"},className:"openapi-markdown__details","data-collapsed":!1,open:!0,children:[(0,i.jsx)("summary",{style:{},children:(0,i.jsx)("h3",{className:"openapi-markdown__details-summary-header-params",children:(0,i.jsx)(s.p,{children:"Path Parameters"})})}),(0,i.jsx)("div",{children:(0,i.jsx)("ul",{children:(0,i.jsx)(d.Z,{className:"paramsItem",param:{name:"contact_id",in:"path",description:"ID of pet to return",required:!0,schema:{type:"integer",format:"int64"}}})})})]}),"\n",(0,i.jsx)("div",{children:(0,i.jsx)("div",{children:(0,i.jsxs)(l.Z,{children:[(0,i.jsxs)(h.default,{label:"200",value:"200",children:[(0,i.jsx)("div",{children:(0,i.jsx)(s.p,{children:"successful operation"})}),(0,i.jsx)("div",{children:(0,i.jsxs)(c.Z,{className:"openapi-tabs__mime",schemaType:"response",children:[(0,i.jsx)(h.default,{label:"application/json",value:"application/json",children:(0,i.jsxs)(p.default,{className:"openapi-tabs__schema",children:[(0,i.jsx)(h.default,{label:"Schema",value:"Schema",children:(0,i.jsxs)(a,{style:{},className:"openapi-markdown__details response","data-collapsed":!1,open:!0,children:[(0,i.jsx)("summary",{style:{},className:"openapi-markdown__details-summary-response",children:(0,i.jsx)("strong",{children:(0,i.jsx)(s.p,{children:"Schema"})})}),(0,i.jsx)("div",{style:{textAlign:"left",marginLeft:"1rem"}}),(0,i.jsxs)("ul",{style:{marginLeft:"1rem"},children:[(0,i.jsx)(o.Z,{collapsible:!1,name:"id",required:!1,schemaName:"int64",qualifierMessage:void 0,schema:{type:"integer",format:"int64",example:10}}),(0,i.jsx)(o.Z,{collapsible:!1,name:"name",required:!0,schemaName:"string",qualifierMessage:void 0,schema:{type:"string",example:"doggie"}}),(0,i.jsx)(o.Z,{collapsible:!0,className:"schemaItem",children:(0,i.jsxs)(a,{style:{},className:"openapi-markdown__details",children:[(0,i.jsx)("summary",{style:{},children:(0,i.jsxs)("span",{className:"openapi-schema__container",children:[(0,i.jsx)("strong",{className:"openapi-schema__property",children:(0,i.jsx)(s.p,{children:"category"})}),(0,i.jsx)("span",{className:"openapi-schema__name",children:(0,i.jsx)(s.p,{children:"category"})})]})}),(0,i.jsxs)("div",{style:{marginLeft:"1rem"},children:[(0,i.jsx)(o.Z,{collapsible:!1,name:"id",required:!1,schemaName:"int64",qualifierMessage:void 0,schema:{type:"integer",format:"int64",example:1}}),(0,i.jsx)(o.Z,{collapsible:!1,name:"name",required:!1,schemaName:"string",qualifierMessage:void 0,schema:{type:"string",example:"Dogs"}})]})]})}),(0,i.jsx)(o.Z,{collapsible:!1,name:"photoUrls",required:!0,schemaName:"string[]",qualifierMessage:void 0,schema:{type:"array",xml:{wrapped:!0},items:{type:"string",xml:{name:"photoUrl"}}}}),(0,i.jsx)(o.Z,{collapsible:!0,className:"schemaItem",children:(0,i.jsxs)(a,{style:{},className:"openapi-markdown__details",children:[(0,i.jsx)("summary",{style:{},children:(0,i.jsxs)("span",{className:"openapi-schema__container",children:[(0,i.jsx)("strong",{className:"openapi-schema__property",children:(0,i.jsx)(s.p,{children:"tags"})}),(0,i.jsx)("span",{className:"openapi-schema__name",children:(0,i.jsx)(s.p,{children:"tag[]"})})]})}),(0,i.jsxs)("div",{style:{marginLeft:"1rem"},children:[(0,i.jsx)("li",{children:(0,i.jsx)("div",{style:{fontSize:"var(--ifm-code-font-size)",opacity:"0.6",marginLeft:"-.5rem",paddingBottom:".5rem"},children:(0,i.jsx)(s.p,{children:"Array ["})})}),(0,i.jsx)(o.Z,{collapsible:!1,name:"id",required:!1,schemaName:"int64",qualifierMessage:void 0,schema:{type:"integer",format:"int64"}}),(0,i.jsx)(o.Z,{collapsible:!1,name:"name",required:!1,schemaName:"string",qualifierMessage:void 0,schema:{type:"string"}}),(0,i.jsx)("li",{children:(0,i.jsx)("div",{style:{fontSize:"var(--ifm-code-font-size)",opacity:"0.6",marginLeft:"-.5rem"},children:(0,i.jsx)(s.p,{children:"]"})})})]})]})}),(0,i.jsx)(o.Z,{collapsible:!1,name:"status",required:!1,schemaName:"string",qualifierMessage:"**Possible values:** [`available`, `pending`, `sold`]",schema:{type:"string",description:"pet status in the store",enum:["available","pending","sold"]}})]})]})}),(0,i.jsx)(h.default,{label:"Example (from schema)",value:"Example (from schema)",children:(0,i.jsx)(m.Z,{responseExample:'{\n "id": 10,\n "name": "doggie",\n "category": {\n "id": 1,\n "name": "Dogs"\n },\n "photoUrls": [\n "string"\n ],\n "tags": [\n {\n "id": 0,\n "name": "string"\n }\n ],\n "status": "available"\n}',language:"json"})})]})}),(0,i.jsx)(h.default,{label:"application/xml",value:"application/xml",children:(0,i.jsxs)(p.default,{className:"openapi-tabs__schema",children:[(0,i.jsx)(h.default,{label:"Schema",value:"Schema",children:(0,i.jsxs)(a,{style:{},className:"openapi-markdown__details response","data-collapsed":!1,open:!0,children:[(0,i.jsx)("summary",{style:{},className:"openapi-markdown__details-summary-response",children:(0,i.jsx)("strong",{children:(0,i.jsx)(s.p,{children:"Schema"})})}),(0,i.jsx)("div",{style:{textAlign:"left",marginLeft:"1rem"}}),(0,i.jsxs)("ul",{style:{marginLeft:"1rem"},children:[(0,i.jsx)(o.Z,{collapsible:!1,name:"id",required:!1,schemaName:"int64",qualifierMessage:void 0,schema:{type:"integer",format:"int64",example:10}}),(0,i.jsx)(o.Z,{collapsible:!1,name:"name",required:!0,schemaName:"string",qualifierMessage:void 0,schema:{type:"string",example:"doggie"}}),(0,i.jsx)(o.Z,{collapsible:!0,className:"schemaItem",children:(0,i.jsxs)(a,{style:{},className:"openapi-markdown__details",children:[(0,i.jsx)("summary",{style:{},children:(0,i.jsxs)("span",{className:"openapi-schema__container",children:[(0,i.jsx)("strong",{className:"openapi-schema__property",children:(0,i.jsx)(s.p,{children:"category"})}),(0,i.jsx)("span",{className:"openapi-schema__name",children:(0,i.jsx)(s.p,{children:"category"})})]})}),(0,i.jsxs)("div",{style:{marginLeft:"1rem"},children:[(0,i.jsx)(o.Z,{collapsible:!1,name:"id",required:!1,schemaName:"int64",qualifierMessage:void 0,schema:{type:"integer",format:"int64",example:1}}),(0,i.jsx)(o.Z,{collapsible:!1,name:"name",required:!1,schemaName:"string",qualifierMessage:void 0,schema:{type:"string",example:"Dogs"}})]})]})}),(0,i.jsx)(o.Z,{collapsible:!1,name:"photoUrls",required:!0,schemaName:"string[]",qualifierMessage:void 0,schema:{type:"array",xml:{wrapped:!0},items:{type:"string",xml:{name:"photoUrl"}}}}),(0,i.jsx)(o.Z,{collapsible:!0,className:"schemaItem",children:(0,i.jsxs)(a,{style:{},className:"openapi-markdown__details",children:[(0,i.jsx)("summary",{style:{},children:(0,i.jsxs)("span",{className:"openapi-schema__container",children:[(0,i.jsx)("strong",{className:"openapi-schema__property",children:(0,i.jsx)(s.p,{children:"tags"})}),(0,i.jsx)("span",{className:"openapi-schema__name",children:(0,i.jsx)(s.p,{children:"tag[]"})})]})}),(0,i.jsxs)("div",{style:{marginLeft:"1rem"},children:[(0,i.jsx)("li",{children:(0,i.jsx)("div",{style:{fontSize:"var(--ifm-code-font-size)",opacity:"0.6",marginLeft:"-.5rem",paddingBottom:".5rem"},children:(0,i.jsx)(s.p,{children:"Array ["})})}),(0,i.jsx)(o.Z,{collapsible:!1,name:"id",required:!1,schemaName:"int64",qualifierMessage:void 0,schema:{type:"integer",format:"int64"}}),(0,i.jsx)(o.Z,{collapsible:!1,name:"name",required:!1,schemaName:"string",qualifierMessage:void 0,schema:{type:"string"}}),(0,i.jsx)("li",{children:(0,i.jsx)("div",{style:{fontSize:"var(--ifm-code-font-size)",opacity:"0.6",marginLeft:"-.5rem"},children:(0,i.jsx)(s.p,{children:"]"})})})]})]})}),(0,i.jsx)(o.Z,{collapsible:!1,name:"status",required:!1,schemaName:"string",qualifierMessage:"**Possible values:** [`available`, `pending`, `sold`]",schema:{type:"string",description:"pet status in the store",enum:["available","pending","sold"]}})]})]})}),(0,i.jsx)(h.default,{label:"Example (from schema)",value:"Example (from schema)",children:(0,i.jsx)(m.Z,{responseExample:"<root>\n <id>10</id>\n <name>doggie</name>\n <category>\n <id>1</id>\n <name>Dogs</name>\n </category>\n <photoUrls>string</photoUrls>\n <tags>\n <id>0</id>\n <name>string</name>\n </tags>\n <status>available</status>\n</root>",language:"xml"})})]})})]})})]}),(0,i.jsxs)(h.default,{label:"400",value:"400",children:[(0,i.jsx)("div",{children:(0,i.jsx)(s.p,{children:"Invalid ID supplied"})}),(0,i.jsx)("div",{})]}),(0,i.jsxs)(h.default,{label:"404",value:"404",children:[(0,i.jsx)("div",{children:(0,i.jsx)(s.p,{children:"Pet not found"})}),(0,i.jsx)("div",{})]})]})})})]})}function v(e={}){const{wrapper:s}={...(0,n.a)(),...e.components};return s?(0,i.jsx)(s,{...e,children:(0,i.jsx)(y,{...e})}):y(e)}}}]);