Files
OpenSign/assets/js/9bc3a0d1.ead605c3.js
T

1 line
9.8 KiB
JavaScript

"use strict";(self.webpackChunkOpenSign_Docs=self.webpackChunkOpenSign_Docs||[]).push([[3418],{85743:(e,a,s)=>{s.r(a),s.d(a,{assets:()=>b,contentTitle:()=>g,default:()=>j,frontMatter:()=>h,metadata:()=>x,toc:()=>f});var i=s(85893),t=s(11151),l=s(58219),r=(s(62316),s(51039)),d=s.n(r),n=(s(82723),s(9487)),c=s(41429),o=s(5397),p=s(4667),m=s(9472),u=s(85162);const h={id:"get-order-by-id",title:"Find purchase order by ID",description:"For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions.",sidebar_label:"Find purchase order by ID",hide_title:!0,hide_table_of_contents:!0,api:"eJztVm1rIzcQ/itCny7geO1c2rSmLU2bXDA96lBfaSEJh7w769XdWtpIWifG7H/vM9p1snHSNv1SKBQMXo2eZ2Y0b9JWBrX0cnIlA62qUgXy8mYgM/Kp01XQ1siJfGedWKtSZ8KRr6zxJILbCG0CLcmJ6ZkXdzoUjKlJfPOt+EKA8Z0Yj4ZiFgpy7Q6jylIsyZCDIUH3KUUTfigH0lYsxWqaweSSwsxl5H7YYDmQlXJqRYEcu7qVBguAdi5/1IzR7GqlQiH3/Z+eCZvDJegToVBBGKLMi2DFgkROIS2IFTi6rbXD5yS4mgbSQ75ScrKVYVOxve7AgObWrVRoRV8ey6a5YXobG8+Mo9GI/5764es0Je/zuhQPp4Wy1EKvCYxXVVXqNG4knzyTts/dsItPlAaOimM1QbcmEYRXuDqQdK8QNoDGowY6KEz/MfHrr05OjkC+rZUJOmz+lv/2qM8/AdUXujpD7npUH5w2yz4zA+AwaCSbGUGF2r+EfxrlWDdi3qJ7Vjm4zq5jqsnUKy56lE8aBb29jEq9Jq6Dm4aTw+wnfi6sLUkZZH0g71cl73QFGUuMfUVQoslZK2gGTzLbkf5P7H8/sQw9fqnXp6admJg9vubcw2zEHj/HtgczNojc1iaL9jHtCttNwjgAMdcmMtmNvGTbG34NAJ7cejceawffZRFC5SdJgggMUU7G66Up1cIPcXIIdbIeS55bntLaIddzLse24rD78TP1sw/JTxAMdgH5/fBSOU+Hpzt5nL4FqV29a5PbyN8FDB7M4YE4vZwKWN5P7odCe4Efb2c2rVeYiLFbEBMn9thioTxlApu4XeImy98Ox8JXlOq8a7ShuDbXZm5XJGpPPHZLbT77ybU5FFezHDCtSvEbLbwOdPNmF7C7u7tnATuInAvccvUCt2BlH+HLKIxR7bMeFgc4K26ulZ/lcyRJp9Ql509MJRGcdBeDSuPFgEGhOamd6Pt9EtcW5guE1Cvb04vL9wjLCLoea+IVLifvpz+e/zw/Z61cVW2KxsMRVPFosT6slOkZeqdNJqrapQUS0920iw2Kfz/P28fb7t95VnT1G+g+JOgXlGnTBWPbNdXj0wfwSf9NgeYocFSGbLdccr+6smlYfFuTQ3tc4XOtnFYLrnF0XqY9f6Nvc1V6+ovDv/mle20ciFc+T148ya49DfdgDAdW+Izd++SB1PDQ6xqUXW0RpykHq8d99gLhEfEwjC7OP6C7/wB/6nim",sidebar_class_name:"get api-method",info_path:"docs/API-docs/opensign-api-v-1",custom_edit_url:null},g=void 0,x={id:"API-docs/get-order-by-id",title:"Find purchase order by ID",description:"For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions.",source:"@site/docs/API-docs/get-order-by-id.api.mdx",sourceDirName:"API-docs",slug:"/API-docs/get-order-by-id",permalink:"/docs/API-docs/get-order-by-id",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",frontMatter:{id:"get-order-by-id",title:"Find purchase order by ID",description:"For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions.",sidebar_label:"Find purchase order by ID",hide_title:!0,hide_table_of_contents:!0,api:"eJztVm1rIzcQ/itCny7geO1c2rSmLU2bXDA96lBfaSEJh7w769XdWtpIWifG7H/vM9p1snHSNv1SKBQMXo2eZ2Y0b9JWBrX0cnIlA62qUgXy8mYgM/Kp01XQ1siJfGedWKtSZ8KRr6zxJILbCG0CLcmJ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/wB/6nim",sidebar_class_name:"get api-method",info_path:"docs/API-docs/opensign-api-v-1",custom_edit_url:null},sidebar:"apiSidebar",previous:{title:"Place an order for a pet",permalink:"/docs/API-docs/place-order"},next:{title:"Delete purchase order by ID",permalink:"/docs/API-docs/delete-order"}},b={},f=[{value:"Request",id:"request",level:2}];function v(e){const a={h2:"h2",p:"p",...(0,t.a)(),...e.components},{Details:s}=a;return s||function(e,a){throw new Error("Expected "+(a?"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)(a.p,{children:"Find purchase order by ID"})}),"\n",(0,i.jsx)(d(),{method:"get",path:"/template/{template_id}"}),"\n",(0,i.jsx)(a.p,{children:"For valid response try integer IDs with value < 5 or > 10. Other values will generate exceptions."}),"\n",(0,i.jsx)(a.h2,{id:"request",children:"Request"}),"\n",(0,i.jsxs)(s,{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)(a.p,{children:"Path Parameters"})})}),(0,i.jsx)("div",{children:(0,i.jsx)("ul",{children:(0,i.jsx)(c.Z,{className:"paramsItem",param:{name:"template_id",in:"path",description:"ID of order that needs to be fetched",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)(u.default,{label:"200",value:"200",children:[(0,i.jsx)("div",{children:(0,i.jsx)(a.p,{children:"successful operation"})}),(0,i.jsx)("div",{children:(0,i.jsxs)(n.Z,{className:"openapi-tabs__mime",schemaType:"response",children:[(0,i.jsx)(u.default,{label:"application/json",value:"application/json",children:(0,i.jsxs)(m.default,{className:"openapi-tabs__schema",children:[(0,i.jsx)(u.default,{label:"Schema",value:"Schema",children:(0,i.jsxs)(s,{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)(a.p,{children:"Schema"})})}),(0,i.jsx)("div",{style:{textAlign:"left",marginLeft:"1rem"}}),(0,i.jsxs)("ul",{style:{marginLeft:"1rem"},children:[(0,i.jsx)(p.Z,{collapsible:!1,name:"id",required:!1,schemaName:"int64",qualifierMessage:void 0,schema:{type:"integer",format:"int64",example:10}}),(0,i.jsx)(p.Z,{collapsible:!1,name:"petId",required:!1,schemaName:"int64",qualifierMessage:void 0,schema:{type:"integer",format:"int64",example:198772}}),(0,i.jsx)(p.Z,{collapsible:!1,name:"quantity",required:!1,schemaName:"int32",qualifierMessage:void 0,schema:{type:"integer",format:"int32",example:7}}),(0,i.jsx)(p.Z,{collapsible:!1,name:"shipDate",required:!1,schemaName:"date-time",qualifierMessage:void 0,schema:{type:"string",format:"date-time"}}),(0,i.jsx)(p.Z,{collapsible:!1,name:"status",required:!1,schemaName:"string",qualifierMessage:"**Possible values:** [`placed`, `approved`, `delivered`]",schema:{type:"string",description:"Order Status",example:"approved",enum:["placed","approved","delivered"]}}),(0,i.jsx)(p.Z,{collapsible:!1,name:"complete",required:!1,schemaName:"boolean",qualifierMessage:void 0,schema:{type:"boolean"}})]})]})}),(0,i.jsx)(u.default,{label:"Example (from schema)",value:"Example (from schema)",children:(0,i.jsx)(o.Z,{responseExample:'{\n "id": 10,\n "petId": 198772,\n "quantity": 7,\n "shipDate": "2023-12-24T21:10:12.539Z",\n "status": "approved",\n "complete": true\n}',language:"json"})})]})}),(0,i.jsx)(u.default,{label:"application/xml",value:"application/xml",children:(0,i.jsxs)(m.default,{className:"openapi-tabs__schema",children:[(0,i.jsx)(u.default,{label:"Schema",value:"Schema",children:(0,i.jsxs)(s,{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)(a.p,{children:"Schema"})})}),(0,i.jsx)("div",{style:{textAlign:"left",marginLeft:"1rem"}}),(0,i.jsxs)("ul",{style:{marginLeft:"1rem"},children:[(0,i.jsx)(p.Z,{collapsible:!1,name:"id",required:!1,schemaName:"int64",qualifierMessage:void 0,schema:{type:"integer",format:"int64",example:10}}),(0,i.jsx)(p.Z,{collapsible:!1,name:"petId",required:!1,schemaName:"int64",qualifierMessage:void 0,schema:{type:"integer",format:"int64",example:198772}}),(0,i.jsx)(p.Z,{collapsible:!1,name:"quantity",required:!1,schemaName:"int32",qualifierMessage:void 0,schema:{type:"integer",format:"int32",example:7}}),(0,i.jsx)(p.Z,{collapsible:!1,name:"shipDate",required:!1,schemaName:"date-time",qualifierMessage:void 0,schema:{type:"string",format:"date-time"}}),(0,i.jsx)(p.Z,{collapsible:!1,name:"status",required:!1,schemaName:"string",qualifierMessage:"**Possible values:** [`placed`, `approved`, `delivered`]",schema:{type:"string",description:"Order Status",example:"approved",enum:["placed","approved","delivered"]}}),(0,i.jsx)(p.Z,{collapsible:!1,name:"complete",required:!1,schemaName:"boolean",qualifierMessage:void 0,schema:{type:"boolean"}})]})]})}),(0,i.jsx)(u.default,{label:"Example (from schema)",value:"Example (from schema)",children:(0,i.jsx)(o.Z,{responseExample:"<root>\n <id>10</id>\n <petId>198772</petId>\n <quantity>7</quantity>\n <shipDate>2023-12-24T21:10:12.539Z</shipDate>\n <status>approved</status>\n <complete>true</complete>\n</root>",language:"xml"})})]})})]})})]}),(0,i.jsxs)(u.default,{label:"400",value:"400",children:[(0,i.jsx)("div",{children:(0,i.jsx)(a.p,{children:"Invalid ID supplied"})}),(0,i.jsx)("div",{})]}),(0,i.jsxs)(u.default,{label:"404",value:"404",children:[(0,i.jsx)("div",{children:(0,i.jsx)(a.p,{children:"Order not found"})}),(0,i.jsx)("div",{})]})]})})})]})}function j(e={}){const{wrapper:a}={...(0,t.a)(),...e.components};return a?(0,i.jsx)(a,{...e,children:(0,i.jsx)(v,{...e})}):v(e)}}}]);