PageSourceSearch

https://docusaurus-openapi.netlify.app/assets/js/fbd3c04c.fc53d8fd.js

js docusaurus-openapi.netlify.app collected 2026-10-03 10:41:36 UTC 15,934 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([["8024"],{41167:function(e,t,n){n.r(t),n.d(t,{frontMatter:()=>a,contentTitle:()=>o,default:()=>d,toc:()=>l,metadata:()=>s});var s=JSON.parse('{"type":"api","id":"creates-list-of-users-with-given-input-array","title":"Creates list of users with given input array","description":"","slug":"/creates-list-of-users-with-given-input-array","frontMatter":{},"api":{"tags":["user"],"description":"","operationId":"createUsersWithArrayInput","responses":{"default":{"description":"successful operation"}},"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","format":"int64","readOnly":true},"pet":{"oneOf":[{"type":"object","required":["name","photoUrls"],"discriminator":{"propertyName":"petType","mapping":{"cat":"#/components/schemas/Cat","dog":"#/components/schemas/Dog","bee":"#/components/schemas/HoneyBee"}},"properties":{"id":{"externalDocs":{"description":"Find more info here","url":"https://example.com"},"description":"Pet ID","type":"integer","format":"int64","readOnly":true},"category":{"description":"Categories this pet belongs to","type":"object","properties":{"id":{"description":"Category ID","type":"integer","format":"int64","readOnly":true},"name":{"description":"Category name","type":"string","minLength":1},"sub":{"description":"Test Sub Category","type":"object","properties":{"prop1":{"type":"string","description":"Dumb Property"}}}},"xml":{"name":"Category"}},"name":{"description":"The name given to a pet","type":"string","example":"Guru"},"photoUrls":{"description":"The list of URL to a cute photos featuring pet","type":"array","maxItems":20,"xml":{"name":"photoUrl","wrapped":true},"items":{"type":"string","format":"url"}},"friend":{"$ref":"#/components/schemas/Pet"},"tags":{"description":"Tags attached to the pet","type":"array","minItems":1,"xml":{"name":"tag","wrapped":true},"items":{"type":"object","properties":{"id":{"description":"Tag ID","type":"integer","format":"int64","readOnly":true},"name":{"description":"Tag name","type":"string","minLength":1}},"xml":{"name":"Tag"}}},"status":{"type":"string","description":"Pet status in the store","enum":["available","pending","sold"]},"petType":{"description":"Type of a pet","type":"string"}},"xml":{"name":"Pet"}},{"type":"object","properties":{"id":{"description":"Tag ID","type":"integer","format":"int64","readOnly":true},"name":{"description":"Tag name","type":"string","minLength":1}},"xml":{"name":"Tag"}}]},"username":{"description":"User supplied username","type":"string","minLength":4,"example":"John78"},"firstName":{"description":"User first name","type":"string","minLength":1,"example":"John"},"lastName":{"description":"User last name","type":"string","minLength":1,"example":"Smith"},"email":{"description":"User email address","type":"string","format":"email","example":"[email protected]"},"password":{"type":"string","description":"User password, MUST contain a mix of upper and lower case letters, as well as digits","format":"password","minLength":8,"pattern":"/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])/","example":"drowssaP123"},"phone":{"description":"User phone number in international format","type":"string","pattern":"/^\\\\+(?:[0-9]-?){6,14}[0-9]$/","example":"+1-202-555-0192"},"userStatus":{"description":"User status","type":"integer","format":"int32"}},"xml":{"name":"User"}}}}},"description":"List of user object","required":true},"method":"post","path":"/user/createWithArray","parameters":[],"servers":[{"url":"//petstore.swagger.io/v2","description":"Default server"},{"url":"//petstore.swagger.io/sandbox","description":"Sandbox server"}],"securitySchemes":{"petstore_auth":{"description":"Get access to data while protecting your account credentials.\\nOAuth2 is also a safer and more secure way to give you access.\\n","type":"oauth2","flows":{"implicit":{"authorizationUrl":"http://petstore.swagger.io/api/oauth/dialog","scopes":{"write:pets":"modify pets in your account","read:pets":"read your pets"}}}}
1,"api_key":{"description":"For this sample, you can use the api key `special-key` to test the authorization filters.\\n","type":"apiKey","name":"api_key","in":"header"}},"jsonRequestBodyExample":[{"id":0,"username":"John78","firstName":"John","lastName":"Smith","email":"[email protected]","password":"drowssaP123","phone":"+1-202-555-0192","userStatus":0}],"info":{"description":"This is a sample server Petstore server.\\nYou can find out more about Swagger at\\n[http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/).\\nFor this sample, you can use the api key `special-key` to test the authorization filters.\\n\\n# Introduction\\nThis API is documented in **OpenAPI format** and is based on\\n[Petstore sample](http://petstore.swagger.io/) provided by [swagger.io](http://swagger.io) team.\\nIt was **extended** to illustrate features of [generator-openapi-repo](https://github.com/Rebilly/generator-openapi-repo)\\ntool and [ReDoc](https://github.com/Redocly/redoc) documentation. In addition to standard\\nOpenAPI syntax we use a few [vendor extensions](https://github.com/Redocly/redoc/blob/master/docs/redoc-vendor-extensions.md).\\n\\n# OpenAPI Specification\\nThis API is documented in **OpenAPI format** and is based on\\n[Petstore sample](http://petstore.swagger.io/) provided by [swagger.io](http://swagger.io) team.\\nIt was **extended** to illustrate features of [generator-openapi-repo](https://github.com/Rebilly/generator-openapi-repo)\\ntool and [ReDoc](https://github.com/Redocly/redoc) documentation. In addition to standard\\nOpenAPI syntax we use a few [vendor extensions](https://github.com/Redocly/redoc/blob/master/docs/redoc-vendor-extensions.md).\\n\\n# Cross-Origin Resource Sharing\\nThis API features Cross-Origin Resource Sharing (CORS) implemented in compliance with  [W3C spec](https://www.w3.org/TR/cors/).\\nAnd that allows cross-domain communication from the browser.\\nAll responses have a wildcard same-origin which makes them completely public and accessible to everyone, including any code on any site.\\n\\n# Authentication\\n\\nPetstore offers two forms of authentication:\\n  - API Key\\n  - OAuth2\\nOAuth2 - an open protocol to allow secure authorization in a simple\\nand standard method from web, mobile and desktop applications.\\n","version":"1.0.0","title":"Swagger Petstore YAML","termsOfService":"http://swagger.io/terms/","contact":{"name":"API Support","email":"[email protected]","url":"https://github.com/Redocly/redoc"},"x-logo":{"url":"https://redocly.github.io/redoc/petstore-logo.png","altText":"Petstore logo"},"license":{"name":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"}},"postman":{"name":"Creates list of users with given input array","description":{"content":"","type":"text/plain"},"url":{"path":["user","createWithArray"],"host":["{{baseUrl}}"],"query":[],"variable":[]},"header":[{"key":"Content-Type","value":"application/json"}],"method":"POST","body":{"mode":"raw","raw":"[\\n  {\\n    \\"pet\\": {\\n      \\"name\\": \\"<string>\\",\\n      \\"photoUrls\\": [\\n        \\"<url>\\",\\n        \\"<url>\\"\\n      ],\\n      \\"category\\": {\\n        \\"name\\": \\"<string>\\",\\n        \\"sub\\": {\\n          \\"prop1\\": \\"<string>\\"\\n        }\\n      },\\n      \\"friend\\": {\\n        \\"name\\": \\"<string>\\",\\n        \\"photoUrls\\": [\\n          \\"<url>\\",\\n          \\"<url>\\"\\n        ],\\n        \\"category\\": {\\n          \\"name\\": \\"<string>\\",\\n          \\"sub\\": {\\n            \\"prop1\\": \\"<string>\\"\\n          }\\n        },\\n        \\"friend\\": {\\n          \\"value\\": \\"<Circular reference to #/components/schemas/Pet detected>\\"\\n        },\\n        \\"tags\\": [\\n          {\\n            \\"name\\": \\"<string>\\"\\n          }\\n        ],\\n        \\"status\\": \\"<string>\\",\\n        \\"petType\\": \\"<string>\\"\\n      },\\n      \\"tags\\": [\\n        {\\n          \\"name\\": \\"<string>\\"\\n        }\\n      ],\\n      \\"status\\": \\"<string>\\",\\n      \\"petType\\": \\"<string>\\"\\n    },\\n    \\"username\\": \\"<string>\\",\\n    \\"firstName\\": \\"<string>\\",\\n    \\"lastName\\": \\"<string>\\",\\n    \\"email\\": \\"<email>\\",\\n    \\"password\\": \\"<password>\\",\\n    \\"phone\\": \\"<string>\\",\\n    \\"userStatus\\": \\"<integer>\\"\\n  },\\n  {\\n    \\"pet\\": {\\n      \\"name\\": \\"<string>\\",\\n      \\"photoUrls\\": [\\n        \\"<url>\\",\\n        \\"<url>\\"\\n      ],\\n      \\"category\\": {\\n        \\"name\\": \\"<string>\\",\\n        \\"sub\\": {\\n          \\"prop1\\": \\"<string>\\"\\n        }\\n      },\\n      \\"friend\\": {\\n        \\"name\\": \\"<string>\\",\\n        \\"photoUrls\\": [\\n          \\"<url>\\",\\n          \\"<url>\\"\\n        ],\\n        \\"category\\": {\\n          \\"name\\": \\"<string>\\",\\n          \\"sub\\": {\\n            \\"prop1\\": \\"<string>\\"\\n          }\\n        },\\n        \\"friend\\": {\\n          \\"value\\": \\"<Circular reference to #/components/schemas/Pet detected>\\"\\n        },\\n        \\"tags\\": [\\n          {\\n            \\"name\\": \\"<string>\\"\\n          }\\n        ],\\n        \\"status\\": \\"<string>\\",\\n        \\"petType\\": \\"<string>\\"\\n      },\\n      \\"tags\\": [\\n        {\\n          \\"name\\": \\"<string>\\"\\n        }\\n      ],\\n      \\"status\\": \\"<string>\\",\\n      \\"petType\\": \\"<string>\\"\\n    },\\n    \\"username\\": \\"<string>\\",\\n    \\"firstName\\": \\"<string>\\",\\n    \\"lastName\\": \\"<string>\\",\\n    \\"email\\": \\"<email>\\",\\n    \\"password\\": \\"<password>\\",\\n    \\"phone\\": \\"<string>\\",\\n    \\"userStatus\\": \\"<integer>\\"\\n  }\\n]","options":{"raw":{"language":"json"}}}}},"source":"@site/examples/petstore.yaml","sourceDirName":".","permalink":"/petstore/creates-list-of-users-with-given-input-array","previous":{"title":"Delete user","permalink":"/petstore/delete-user"},"next":{"title":"Creates list of users with given input array","permalink":"/petstore/creates-list-of-users-with-given-input-array-1"}}'),r=n(24246),i=n(80980);let a={},o="Creates list of users with given input array",l=[];function p(e){let t={code:"code",h1:"h1",header:"header",p:"p",strong:"strong",...(0,i.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.header,{children:(0,r.jsx)(t.h1,{id:"creates-list-of-users-with-given-input-array",children:"Creates list of users with given input array"})}),"\n",(0,r.jsxs)("table",{style:{display:"table",width:"100%"},children:[(0,r.jsx)("thead",{children:(0,r.jsx)("tr",{children:(0,r.jsxs)("th",{style:{textAlign:"left"},children:[(0,r.jsx)("span",{children:"Request Body "}),(0,r.jsx)("span",{style:{opacity:"0.6"},children:" \u2014 "}),(0,r.jsx)("strong",{style:{fontSize:"var(--ifm-code-font-size)",color:"var(--openapi-required)"},children:" REQUIRED"}),(0,r.jsx)("div",{children:(0,r.jsx)(t.p,{children:"List of user object"})})]})})}),(0,r.jsx)("tbody",{children:(0,r.jsx)("tr",{children:(0,r.jsxs)("td",{children:[(0,r.jsx)("span",{style:{opacity:"0.6"},children:" User[]"}),(0,r.jsx)("table",{style:{display:"table",width:"100%",marginTop:"var(--ifm-table-cell-padding)",marginBottom:"0px"},children:(0,r.jsxs)("tbody",{children:[(0,r.jsx)("tr",{children:(0,r.jsxs)("td",{children:[(0,r.jsx)("code",{children:"id"}),(0,r.jsx)("span",{style:{opacity:"0.6"},children:" int64"})]})}),(0,r.jsx)("tr",{children:(0,r.jsxs)("td",{children:[(0,r.jsx)("code",{children:"pet"}),(0,r.jsx)("span",{style:{opacity:"0.6"}})]})}),(0,r.jsx)("tr",{children:(0,r.jsxs)("td",{children:[(0,r.jsx)("code",{children:"username"}),(0,r.jsx)("span",{style:{opacity:"0.6"},children:" string"}),(0,r.jsx)("div",{style:{marginTop:"var(--ifm-table-cell-padding)"},children:(0,r.jsxs)(t.p,{children:[(0,r.jsx)(t.strong,{children:"Possible values:"})," 4 \u2264 length"]})}),(0,r.jsx)("div",{style:{marginTop:"var(--ifm-table-cell-padding)"},children:(0,r.jsx)(t.p,{children:"User supplied username"})})]})}),(0,r.jsx)("tr",{children:(0,r.jsxs)("td",{children:[(0,r.jsx)("code",{children:"firstName"}),(0,r.jsx)("span",{style:{opacity:"0.6"},children:" string"}),(0,r.jsx)("div",{style:{marginTop:"var(--ifm-table-cell-padding)"},children:(0,r.jsxs)(t.p,{children:[(0,r.jsx)(t.strong,{children:"Possible values:"})," 1 \u2264 length"]})}),(0,r.jsx)("div",{style:{marginTop:"var(--ifm-table-cell-padding)"},children:(0,r.jsx)(t.p,{children:"User first name"})})]})}),(0,r.jsx)("tr",{children:(0,r.jsxs)("td",{children:[(0,r.jsx)("code",{children:"lastName"}),(0,r.jsx)("span",{style:{opacity:"0.6"},children:" string"}),(0,r.jsx)("div",{style:{marginTop:"var(--ifm-table-cell-padding)"},children:(0,r.jsxs)(t.p,{children:[(0,r.jsx)(t.strong,{children:"Possible values:"})," 1 \u2264 length"]})}),(0,r.jsx)("div",{style:{marginTop:"var(--ifm-table-cell-padding)"},children:(0,r.jsx)(t.p,{children:"User last name"})})]})}),(0,r.jsx)("tr",{children:(0,r.jsxs)("td",{children:[(0,r.jsx)("code",{children:"email"}),(0,r.jsx)("span",{style:{opacity:"0.6"},children:" email"}),(0,r.jsx)("div",{style:{marginTop:"var(--ifm-table-cell-padding)"},children:(0,r.jsx)(t.p,{children:"User email address"})})]})}),(0,r.jsx)("tr",{children:(0,r.jsxs)("td",{children:[(0,r.jsx)("code",{children:"password"}),(0,r.jsx)("span",{style:{opacity:"0.6"},children:" password"}),(0,r.jsx)("div",{style:{marginTop:"var(--ifm-table-cell-padding)"},children:(0,r.jsxs)(t.p,{children:[(0,r.jsx)(t.strong,{children:"Possible values:"})," 8 \u2264 length, Value must match regular expression ",(0,r.jsx)(t.code,{children:"/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])/"})]})}),(0,r.jsx)("div",{style:{marginTop:"var(--ifm-table-cell-padding)"},children:(0,r.jsx)(t.p,{children:"User password, MUST contain a mix of upper and lower case letters, as well as digits"})})]})}),(0,r.jsx)("tr",{children:(0,r.jsxs)("td",{children:[(0,r.jsx)("code",{children:"phone"}),(0,r.jsx)("span",{style:{opacity:"0.6"},children:" string"}),(0,r.jsx)("div",{style:{marginTop:"var(--ifm-table-cell-padding)"},children:(0,r.jsxs)(t.p,{children:[(0,r.jsx)(t.strong,{children:"Possible values:"})," Value must match regular expression ",(0,r.jsx)(t.code,{children:"/^\\+(?:[0-9]-?){6,14}[0-9]$/"})]})}),(0,r.jsx)("div",{style:{marginTop:"var(--ifm-table-cell-padding)"},children:(0,r.jsx)(t.p,{children:"User phone number in international format"})})]})}),(0,r.jsx)("tr",{children:(0,r.jsxs)("td",{children:[(0,r.jsx)("code",{children:"userStatus"}),(0,r.jsx)("span",{style:{opacity:"0.6"},children:" int32"}),(0,r.jsx)("div",{style:{marginTop:"var(--ifm-table-cell-padding)"},children:(0,r.jsx)(t.p,{children:"User status"})})]})})]})})]})})})]}),"\n",(0,r.jsxs)("table",{style:{display:"table",width:"100%"},children:[(0,r.jsx)("thead",{children:(0,r.jsx)("tr",{children:(0,r.jsx)("th",{style:{textAlign:"left"},children:"Responses"})})}),(0,r.jsx)("tbody",{children:(0,r.jsx)("tr",{children:(0,r.jsxs)("td",{children:[(0,r.jsxs)("div",{style:{display:"flex"},children:[(0,r.jsx)("div",{style:{marginRight:"var(--ifm-table-cell-padding)"},children:(0,r.jsx)("code",{children:"default"})}),(0,r.jsx)("div",{children:(0,r.jsx)(t.p,{children:"successful operation"})})]}),(0,r.jsx)("div",{})]})})})]})]})}function d(e={}){let{wrapper:t}={...(0,i.a)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},80980:function(e,t,n){n.d(t,{Z:()=>o,a:()=>a});var s=n(27378);let r={},i=s.createContext(r);function a(e){let t=s.useContext(i);return s.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:a(e.components),s.createElement(i.Provider,{value:t},e.children)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.