Files
OpenSign/assets/js/c1b82f3c.c75a17f1.js
T

1 line
11 KiB
JavaScript

"use strict";(self.webpackChunkOpenSign_Docs=self.webpackChunkOpenSign_Docs||[]).push([[6957],{56536:(e,a,s)=>{s.r(a),s.d(a,{assets:()=>f,contentTitle:()=>h,default:()=>y,frontMatter:()=>u,metadata:()=>x,toc:()=>j});var i=s(85893),l=s(11151),t=s(58219),r=(s(62316),s(51039)),d=s.n(r),n=(s(82723),s(9487)),o=(s(41429),s(5397)),p=s(4667),m=s(9472),c=s(85162);const u={id:"place-order",title:"Place an order for a pet",description:"Place a new order in the store",sidebar_label:"Place an order for a pet",hide_title:!0,hide_table_of_contents:!0,api:"eJztV21v0zAQ/iuWPzGpaZpsMOgnBkyoArGKDoHoJuQm18aQ2MF2uk1V/jt3Trp6BTT4CpMmLblX+57nLtcNd2Jl+XjOHVR1KRxYfjngOdjMyNpJrfiYT0uRARNMwRXTJgfDpGKuAGadNsAHXNdgBBlPcjSvyfyM7FBl4HsD1r3Q+Q0fb3imlQPl6FHUdSkz7xZ/tZRow21WQCXoyd3UgLH04itkDuPUhpI4iedDrcwDG4khVz7ZUptKuE705AgFcC3wVmiUjFqMAW7y147Pnh4fp+j8vRHKSXdzr/9hGvofo6stZP0KSxu4WmekWoWeORpETlbAycMJ19hf2d9FxleZzTrrICsV1+g15CRUTUUAe1hIEOhyKOUaDD5fYtZMk/edcy60LkEo3qL6uipJo0TlkfEAoxiL4lN2iJNhiGzv9ADsPwdsdHV1FdEto8aUoDKdQ/4A9b8BNZkasLVWtgMrHY3o392T2ybLwNplU7LbLwAfPMz4/4MfR6PHP1NiotailDkuCHXjfMQKXKH9WqCtB1m4At/izABWY7t1oMKCwWPSLrLhOFHQpnCutuM4xssMkRnKypUqxcIO8RIolPE64e0leWaNQdhmxKyOPKj98g1CIFHyBgWD7d0+RVNhLEQnW7mk8xcgtsOO+Pp+t72cbuveMTMZ3XKto0/InuOQD9g76WGUpFF6dJ4m6DhO0uHjNPnMdxwI8doh5EwDLR1sqf1FtiBgKWZYCnYynTAswT5hzgtpGf6ROtdZU2Ez+hZkSES2580WwkLOdLfQkZLkh8OE2Royuey7d8gu1IWa6QpYY4E6vpTqmx1fqIjNz5ZoJkXJPsLCSgeXj7bI4SfiJ+QOvM9r6YpmwQzUeme+8kIPb+h1+3KAd3VgKnu2nCFbZAY9S36TKvbGcT+TROZnEg4fSezqRc/3nYjvOLRQCEErnLyevsWyjDDWjpx/cOT47eTl6bvZKUUlencQJcMRhqJxhU1RCRUk6pdt1W/aBJlgyLR9mINd+v4Fve8BB9cuxn5Dqrf9PTZ9Q875XkNiXxXUsajZbIgkH0zZtiTGljBI8jk+roWRYkGsnNNw6buHOtg3H3/ZHTE6p/xkXjb95Lpnj2gH2xAn+I2p3W+c/TeFRsDtlJmezc7ReNH/3qgwGkqDyIPwhY7dtj8ACuxm9g==",sidebar_class_name:"post api-method",info_path:"docs/API-docs/opensign-api-v-1",custom_edit_url:null},h=void 0,x={id:"API-docs/place-order",title:"Place an order for a pet",description:"Place a new order in the store",source:"@site/docs/API-docs/place-order.api.mdx",sourceDirName:"API-docs",slug:"/API-docs/place-order",permalink:"/docs/API-docs/place-order",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",frontMatter:{id:"place-order",title:"Place an order for a pet",description:"Place a new order in the store",sidebar_label:"Place an order for a pet",hide_title:!0,hide_table_of_contents:!0,api:"eJztV21v0zAQ/iuWPzGpaZpsMOgnBkyoArGKDoHoJuQm18aQ2MF2uk1V/jt3Trp6BTT4CpMmLblX+57nLtcNd2Jl+XjOHVR1KRxYfjngOdjMyNpJrfiYT0uRARNMwRXTJgfDpGKuAGadNsAHXNdgBBlPcjSvyfyM7FBl4HsD1r3Q+Q0fb3imlQPl6FHUdSkz7xZ/tZRow21WQCXoyd3UgLH04itkDuPUhpI4iedDrcwDG4khVz7ZUptKuE705AgFcC3wVmiUjFqMAW7y147Pnh4fp+j8vRHKSXdzr/9hGvofo6stZP0KSxu4WmekWoWeORpETlbAycMJ19hf2d9FxleZzTrrICsV1+g15CRUTUUAe1hIEOhyKOUaDD5fYtZMk/edcy60LkEo3qL6uipJo0TlkfEAoxiL4lN2iJNhiGzv9ADsPwdsdHV1FdEto8aUoDKdQ/4A9b8BNZkasLVWtgMrHY3o392T2ybLwNplU7LbLwAfPMz4/4MfR6PHP1NiotailDkuCHXjfMQKXKH9WqCtB1m4At/izABWY7t1oMKCwWPSLrLhOFHQpnCutuM4xssMkRnKypUqxcIO8RIolPE64e0leWaNQdhmxKyOPKj98g1CIFHyBgWD7d0+RVNhLEQnW7mk8xcgtsOO+Pp+t72cbuveMTMZ3XKto0/InuOQD9g76WGUpFF6dJ4m6DhO0uHjNPnMdxwI8doh5EwDLR1sqf1FtiBgKWZYCnYynTAswT5hzgtpGf6ROtdZU2Ez+hZkSES2580WwkLOdLfQkZLkh8OE2Royuey7d8gu1IWa6QpYY4E6vpTqmx1fqIjNz5ZoJkXJPsLCSgeXj7bI4SfiJ+QOvM9r6YpmwQzUeme+8kIPb+h1+3KAd3VgKnu2nCFbZAY9S36TKvbGcT+TROZnEg4fSezqRc/3nYjvOLRQCEErnLyevsWyjDDWjpx/cOT47eTl6bvZKUUlencQJcMRhqJxhU1RCRUk6pdt1W/aBJlgyLR9mINd+v4Fve8BB9cuxn5Dqrf9PTZ9Q875XkNiXxXUsajZbIgkH0zZtiTGljBI8jk+roWRYkGsnNNw6buHOtg3H3/ZHTE6p/xkXjb95Lpnj2gH2xAn+I2p3W+c/TeFRsDtlJmezc7ReNH/3qgwGkqDyIPwhY7dtj8ACuxm9g==",sidebar_class_name:"post api-method",info_path:"docs/API-docs/opensign-api-v-1",custom_edit_url:null},sidebar:"apiSidebar",previous:{title:"Introduction",permalink:"/docs/API-docs/opensign-api-v-1"},next:{title:"Find purchase order by ID",permalink:"/docs/API-docs/get-order-by-id"}},f={},j=[{value:"Request",id:"request",level:2}];function g(e){const a={h2:"h2",p:"p",...(0,l.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:"Place an order for a pet"})}),"\n",(0,i.jsx)(d(),{method:"post",path:"/createtemplate"}),"\n",(0,i.jsx)(a.p,{children:"Place a new order in the store"}),"\n",(0,i.jsx)(a.h2,{id:"request",children:"Request"}),"\n",(0,i.jsxs)(n.Z,{className:"openapi-tabs__mime",schemaType:"request",children:[(0,i.jsx)(c.default,{label:"application/json",value:"application/json",children:(0,i.jsxs)(s,{style:{},className:"openapi-markdown__details mime","data-collapsed":!1,open:!0,children:[(0,i.jsx)("summary",{style:{},className:"openapi-markdown__details-summary-mime",children:(0,i.jsx)("h3",{className:"openapi-markdown__details-summary-header-body",children:(0,i.jsx)(a.p,{children:"Body"})})}),(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)(c.default,{label:"application/xml",value:"application/xml",children:(0,i.jsxs)(s,{style:{},className:"openapi-markdown__details mime","data-collapsed":!1,open:!0,children:[(0,i.jsx)("summary",{style:{},className:"openapi-markdown__details-summary-mime",children:(0,i.jsx)("h3",{className:"openapi-markdown__details-summary-header-body",children:(0,i.jsx)(a.p,{children:"Body"})})}),(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)(c.default,{label:"application/x-www-form-urlencoded",value:"application/x-www-form-urlencoded",children:(0,i.jsxs)(s,{style:{},className:"openapi-markdown__details mime","data-collapsed":!1,open:!0,children:[(0,i.jsx)("summary",{style:{},className:"openapi-markdown__details-summary-mime",children:(0,i.jsx)("h3",{className:"openapi-markdown__details-summary-header-body",children:(0,i.jsx)(a.p,{children:"Body"})})}),(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"}})]})]})})]}),"\n",(0,i.jsx)("div",{children:(0,i.jsx)("div",{children:(0,i.jsxs)(t.Z,{children:[(0,i.jsxs)(c.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.jsx)(n.Z,{className:"openapi-tabs__mime",schemaType:"response",children:(0,i.jsx)(c.default,{label:"application/json",value:"application/json",children:(0,i.jsxs)(m.default,{className:"openapi-tabs__schema",children:[(0,i.jsx)(c.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)(c.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.jsxs)(c.default,{label:"405",value:"405",children:[(0,i.jsx)("div",{children:(0,i.jsx)(a.p,{children:"Invalid input"})}),(0,i.jsx)("div",{})]})]})})})]})}function y(e={}){const{wrapper:a}={...(0,l.a)(),...e.components};return a?(0,i.jsx)(a,{...e,children:(0,i.jsx)(g,{...e})}):g(e)}}}]);