PageSourceSearch

https://docusaurus-openapi.netlify.app/assets/js/7bad73b2.1a1f3dcd.js

js docusaurus-openapi.netlify.app collected 2026-10-03 10:41:29 UTC 6,931 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([["7512"],{88100:function(e,t,n){n.r(t),n.d(t,{frontMatter:()=>o,contentTitle:()=>a,default:()=>c,toc:()=>d,metadata:()=>s});var s=JSON.parse('{"type":"api","id":"delete-user-1","title":"Delete user","description":"","slug":"/delete-user-1","frontMatter":{},"api":{"tags":["user"],"description":"This can only be done by the logged in user.","operationId":"deleteUser","parameters":[{"name":"username","in":"path","description":"The name that needs to be deleted","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"Invalid username supplied"},"404":{"description":"User not found"}},"method":"delete","path":"/user/{username}","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"}}}},"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"}},"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":"Delete user","description":{"content":"This can only be done by the logged in user.","type":"text/plain"},"url":{"path":["user",":username"],"host":["{{baseUrl}}"],"query":[],"variable":[{"disabled":false,"description":{"content":"(Required) The name that needs to be deleted","type":"text/plain"},"type":"any","value":"<string>","key":"username"}]},"method":"DELETE"}},"source":"@site/examples/petstore/_spec_.yaml","sourceDirName":"petstore","permalink":"/multi-spec/delete-user-1","previous":{"title":"Updated user","permalink":"/multi-spec/updated-user-1"},"next":{"title":"Creates list of users with given input array","permalink":"/multi-spec/creates-list-of-users-with-given-input-array-2"}}'),r=n(24246),i=n(80980);let o={},a="Delete user",d=[];function l(e){let t={h1:"h1",header:"header",p:"p",...(0,i.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.header,{children:(0,r.jsx)(t.h1,{id:"delete-user",children:"Delete user"})}),"\n",(0,r.jsx)(t.p,{children:"This can only be done by the logged in user."}),"\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:"Path Parameters"})})}),(0,r.jsx)("tbody",{children:(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)("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",{style:{marginTop:"var(--ifm-table-cell-padding)"},children:(0,r.jsx)(t.p,{children:"The name that needs to be deleted"})})]})})})]}),"\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.jsxs)("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:"400"})}),(0,r.jsx)("div",{children:(0,r.jsx)(t.p,{children:"Invalid username supplied"})})]}),(0,r.jsx)("div",{})]})}),(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:"404"})}),(0,r.jsx)("div",{children:(0,r.jsx)(t.p,{children:"User not found"})})]}),(0,r.jsx)("div",{})]})})]})]})]})}function c(e={}){let{wrapper:t}={...(0,i.a)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(l,{...e})}):l(e)}},80980:function(e,t,n){n.d(t,{Z:()=>a,a:()=>o});var s=n(27378);let r={},i=s.createContext(r);function o(e){let t=s.useContext(i);return s.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(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.