1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[112],{2328:function(e,a,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/droid/single",function(){return t(4562)}])},5063:function(e,a,t){"use strict";var n=t(7297),i=t(5893),r=t(9521),s=t(5675),o=t.n(s);function l(){let e=(0,n.Z)(["\n width: 100%;\n"]);return l=function(){return e},e}let c=r.ZP.div(l()),d=()=>(0,i.jsx)(c,{children:(0,i.jsx)(o(),{src:"/images/divider.png",alt:"Star Wars Divider",height:30,width:800,priority:!0})});a.Z=d},9369:function(e,a,t){"use strict";var n=t(5893);t(7294);var i=t(5675),r=t.n(i);let s={search:{component:!1},head:(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("meta",{name:"google-site-verification",content:"znqL_OsBnLSWCaL3_C4ff5ltmGiqBGFlXi7UtMIIUqw"})}),useNextSeoProps:()=>({titleTemplate:"Star Wars Databank - API",defaultTitle:"Star Wars Databank - API",description:"The Star Wars Databank API is a REST API based on the galatic saga Star Wars. You will have access to hundreds of characters, droids, species, locations, organizations, vehicles and more. The Star Wars Databank API is filled with the official information from the Databank.",canonical:"https://starwars-databank.vercel.app/",openGraph:{images:[{url:"/images/preview.png",width:800,height:420,alt:"Star Wars Databank Preview"}]}}),project:{link:"https://github.com/lethamburn/starwars-databank-docs",icon:(0,n.jsx)(r(),{src:"/images/bb8.png",alt:"BB8 icon",width:35,height:35,priority:!0})},logo:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r(),{src:"/images/logo.png",alt:"Star Wars Databank logo",width:24,height:24,priority:!0}),(0,n.jsx)("span",{style:{marginLeft:".5em",fontWeight:800},children:"STAR WARS DATABANK"})]}),primaryHue:39,banner:{key:"2.5-release",text:(0,n.jsxs)("a",{href:"https://starwars-databank-server.onrender.com/api/v1/",children:["API update: we've migrated from Vercel to Render. New API base URL:"," ","https://starwars-databank-server.onrender.com/api/v1/ ","->"]})},footer:{text:(0,n.jsxs)("span",{children:[new Date().getFullYear()," ","(c)"," ",(0,n.jsx)("a",{href:"https://github.com/lethamburn",target:"_blank",rel:"noreferrer",children:"lethamburn"})]})}};a.Z=s},4562:function(e,a,t){"use strict";t.r(a);var n=t(5893),i=t(6971),r=t(5457),s=t(9369);t(9966);var o=t(1151);t(5675);var l=t(5063);function c(e){let a=Object.assign({h1:"h1",h2:"h2",p:"p",pre:"pre",code:"code",span:"span"},(0,o.ah)(),e.components);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.h1,{children:"Get a single droid"}),"\n",(0,n.jsx)(l.Z,{}),"\n",(0,n.jsx)(a.h2,{id:"get-by-a-id",children:"Get by a id"}),"\n",(0,n.jsx)(a.p,{children:"You can get a single droid by adding the id as a parameter: /droids/id"}),"\n",(0,n.jsx)(a.pre,{"data-language":"text","data-theme":"default",children:(0,n.jsx)(a.code,{"data-language":"text","data-theme":"default",children:(0,n.jsxs)(a.span,{className:"line",children:[(0,n.jsx)(a.span,{style:{color:"var(--shiki-color-text)"},className:"highlighted",children:"GET"}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-color-text)"},children:" https://starwars-databank-server.onrender.com/api/v1/droids/640b304f916c6ff54731edb2"})]})})}),"\n",(0,n.jsx)(a.pre,{"data-language":"json","data-theme":"default",children:(0,n.jsxs)(a.code,{"data-language":"json","data-theme":"default",children:[(0,n.jsx)(a.span,{className:"line",children:(0,n.jsx)(a.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,n.jsxs)(a.span,{className:"line",children:[(0,n.jsx)(a.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-token-keyword)"},children:'"_id"'}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"640b304f916c6ff54731edb2"'}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,n.jsxs)(a.span,{className:"line",children:[(0,n.jsx)(a.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-token-keyword)"},children:'"name"'}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"Pit Droid"'}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,n.jsxs)(a.span,{className:"line",children:[(0,n.jsx)(a.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-token-keyword)"},children:'"description"'}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"Podracing is extremely dangerous, as is maintaining the speedy vehicles. In the hectic pace of a race, safety comes in second place to winning. As such, the cheap and expendable pit droids often bolt out onto the racetrack to repair still cycling superheated engines with no regard to their personal safety. When not in use, pit droids fold up into a compact package. They spring to activation when needed. A tap on the nose signals the droid to collapse back into stowed mode and rest."'}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,n.jsxs)(a.span,{className:"line",children:[(0,n.jsx)(a.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-token-keyword)"},children:'"image"'}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"https://lumiere-a.akamaihd.net/v1/images/pit-droids-main_8b5d6bda.jpeg"'}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,n.jsxs)(a.span,{className:"line",children:[(0,n.jsx)(a.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-token-keyword)"},children:'"__v"'}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-token-constant)"},children:"0"})]}),"\n",(0,n.jsx)(a.span,{className:"line",children:(0,n.jsx)(a.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,n.jsx)(a.h2,{id:"filter-by-name",children:"Filter by name"}),"\n",(0,n.jsx)(a.p,{children:"You can get some droids by adding the name as a parameter with the added endpoint name: /droids/name/DroidName"}),"\n",(0,n.jsx)(a.pre,{"data-language":"text","data-theme":"default",children:(0,n.jsx)(a.code,{"data-language":"text","data-theme":"default",children:(0,n.jsxs)(a.span,{className:"line",children:[(0,n.jsx)(a.span,{style:{color:"var(--shiki-color-text)"},className:"highlighted",children:"GET"}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-color-text)"},children:" https://starwars-databank-server.onrender.com/api/v1/droids/name/"}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-color-text)"},className:"highlighted",children:"Pit%20Droid"})]})})}),"\n",(0,n.jsx)(a.pre,{"data-language":"json","data-theme":"default",children:(0,n.jsxs)(a.code,{"data-language":"json","data-theme":"default",children:[(0,n.jsx)(a.span,{className:"line",children:(0,n.jsx)(a.span,{style:{color:"var(--shiki-color-text)"},children:"["})}),"\n",(0,n.jsx)(a.span,{className:"line",children:(0,n.jsx)(a.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,n.jsxs)(a.span,{className:"line",children:[(0,n.jsx)(a.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-token-keyword)"},children:'"_id"'}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"640b304f916c6ff54731edb2"'}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,n.jsxs)(a.span,{className:"line",children:[(0,n.jsx)(a.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-token-keyword)"},children:'"name"'}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"Pit Droid"'}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,n.jsxs)(a.span,{className:"line",children:[(0,n.jsx)(a.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-token-keyword)"},children:'"description"'}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"Podracing is extremely dangerous, as is maintaining the speedy vehicles. In the hectic pace of a race, safety comes in second place to winning. As such, the cheap and expendable pit droids often bolt out onto the racetrack to repair still cycling superheated engines with no regard to their personal safety. When not in use, pit droids fold up into a compact package. They spring to activation when needed. A tap on the nose signals the droid to collapse back into stowed mode and rest."'}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,n.jsxs)(a.span,{className:"line",children:[(0,n.jsx)(a.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-token-keyword)"},children:'"image"'}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"https://lumiere-a.akamaihd.net/v1/images/pit-droids-main_8b5d6bda.jpeg"'}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,n.jsxs)(a.span,{className:"line",children:[(0,n.jsx)(a.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-token-keyword)"},children:'"__v"'}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(a.span,{style:{color:"var(--shiki-token-constant)"},children:"0"})]}),"\n",(0,n.jsx)(a.span,{className:"line",children:(0,n.jsx)(a.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,n.jsx)(a.span,{className:"line",children:(0,n.jsx)(a.span,{style:{color:"var(--shiki-color-text)"},children:"]"})})]})})]})}let d={MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:a}=Object.assign({},(0,o.ah)(),e.components);return a?(0,n.jsx)(a,{...e,children:(0,n.jsx)(c,{...e})}):c(e)},pageOpts:{filePath:"pages/droid/single.mdx",route:"/droid/single",headings:[{depth:1,value:"Get a single droid",id:"get-a-single-droid"},{depth:2,value:"Get by a id",id:"get-by-a-id"},{depth:2,value:"Filter by name",id:"filter-by-name"}],timestamp:1773502838e3,pageMap:[{kind:"Meta",data:{index:{title:"Introduction",theme:{breadcrumb:!1,footer:!0,sidebar:!0,toc:!1,pagination:!0}
1},info:{title:"Info and Pagination",theme:{breadcrumb:!1,footer:!0,sidebar:!0,toc:!1,pagination:!0}},character:{title:"Character",theme:{breadcrumb:!1,footer:!0,sidebar:!0,toc:!1,pagination:!0}},creature:{title:"Creature",theme:{breadcrumb:!1,footer:!0,sidebar:!0,toc:!1,pagination:!0}},droid:{title:"Droid",theme:{breadcrumb:!1,footer:!0,sidebar:!0,toc:!1,pagination:!0}},location:{title:"Location",theme:{breadcrumb:!1,footer:!0,sidebar:!0,toc:!1,pagination:!0}},organization:{title:"Organization",theme:{breadcrumb:!1,footer:!0,sidebar:!0,toc:!1,pagination:!0}},specie:{title:"Specie",theme:{breadcrumb:!1,footer:!0,sidebar:!0,toc:!1,pagination:!0}},vehicle:{title:"Vehicle",theme:{breadcrumb:!1,footer:!0,sidebar:!0,toc:!1,pagination:!0}},about:{title:"About",type:"page",theme:{breadcrumb:!1,footer:!0,sidebar:!0,toc:!1,pagination:!1}},contact:{title:"Contact â",type:"page",href:"https://github.com/lethamburn",newWindow:!0},"*":{theme:{breadcrumb:!1,footer:!0,sidebar:!0,toc:!1,pagination:!1}}}},{kind:"MdxPage",name:"about",route:"/about"},{kind:"Folder",name:"character",route:"/character",children:[{kind:"Meta",data:{schema:"Character Schema",getall:"Get all characters",single:"Get a single character","*":{theme:{breadcrumb:!1,footer:!0,sidebar:!0,toc:!1,pagination:!0}}}},{kind:"MdxPage",name:"getall",route:"/character/getall"},{kind:"MdxPage",name:"schema",route:"/character/schema"},{kind:"MdxPage",name:"single",route:"/character/single"}]},{kind:"MdxPage",name:"character",route:"/character"},{kind:"Folder",name:"creature",route:"/creature",children:[{kind:"Meta",data:{schema:"Creature Schema",getall:"Get all creatures",single:"Get a single creature","*":{theme:{breadcrumb:!1,footer:!0,sidebar:!0,toc:!1,pagination:!0}}}},{kind:"MdxPage",name:"getall",route:"/creature/getall"},{kind:"MdxPage",name:"schema",route:"/creature/schema"},{kind:"MdxPage",name:"single",route:"/creature/single"}]},{kind:"MdxPage",name:"creature",route:"/creature"},{kind:"Folder",name:"droid",route:"/droid",children:[{kind:"Meta",data:{schema:"Droid Schema",getall:"Get all droids",single:"Get a single droid","*":{theme:{breadcrumb:!1,footer:!0,sidebar:!0,toc:!1,pagination:!0}}}},{kind:"MdxPage",name:"getall",route:"/droid/getall"},{kind:"MdxPage",name:"schema",route:"/droid/schema"},{kind:"MdxPage",name:"single",route:"/droid/single"}]},{kind:"MdxPage",name:"droid",route:"/droid"},{kind:"MdxPage",name:"index",route:"/"},{kind:"MdxPage",name:"info",route:"/info"},{kind:"Folder",name:"location",route:"/location",children:[{kind:"Meta",data:{schema:"Location Schema",getall:"Get all locations",single:"Get a single location","*":{theme:{breadcrumb:!1,footer:!0,sidebar:!0,toc:!1,pagination:!0}}}},{kind:"MdxPage",name:"getall",route:"/location/getall"},{kind:"MdxPage",name:"schema",route:"/location/schema"},{kind:"MdxPage",name:"single",route:"/location/single"}]},{kind:"MdxPage",name:"location",route:"/location"},{kind:"Folder",name:"organization",route:"/organization",children:[{kind:"Meta",data:{schema:"Organization schema",getall:"Get all organizations",single:"Get a single organization","*":{theme:{breadcrumb:!1,footer:!0,sidebar:!0,toc:!1,pagination:!0}}}},{kind:"MdxPage",name:"getall",route:"/organization/getall"},{kind:"MdxPage",name:"schema",route:"/organization/schema"},{kind:"MdxPage",name:"single",route:"/organization/single"}]},{kind:"MdxPage",name:"organization",route:"/organization"},{kind:"Folder",name:"specie",route:"/specie",children:[{kind:"Meta",data:{schema:"Specie schema",getall:"Get all species",single:"Get a single specie","*":{theme:{breadcrumb:!1,footer:!0,sidebar:!0,toc:!1,pagination:!0}}}},{kind:"MdxPage",name:"getall",route:"/specie/getall"},{kind:"MdxPage",name:"schema",route:"/specie/schema"},{kind:"MdxPage",name:"single",route:"/specie/single"}]},{kind:"MdxPage",name:"specie",route:"/specie"},{kind:"Folder",name:"vehicle",route:"/vehicle",children:[{kind:"Meta",data:{schema:"Vehicle schema",getall:"Get all vehicles",single:"Get a single vehicle","*":{theme:{breadcrumb:!1,footer:!0,sidebar:!0,toc:!1,pagination:!0}}}},{kind:"MdxPage",name:"getall",route:"/vehicle/getall"},{kind:"MdxPage",name:"schema",route:"/vehicle/schema"},{kind:"MdxPage",name:"single",route:"/vehicle/single"}]},{kind:"MdxPage",name:"vehicle",route:"/vehicle"}],flexsearch:{codeblocks:!0},title:"Get a single droid"},pageNextRoute:"/droid/single",nextraLayout:r.ZP,themeConfig:s.Z};a.default=(0,i.j)(d)},5789:function(){}},function(e){e.O(0,[774,921,888,179],function(){return e(e.s=2328)}),_N_E=e.O()}]);
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.