Spaces:
Running
Running
Download assets/ApiDocsView-B7sP33lI.js from huggingface/paperswithcode: direct link, hf CLI and curl.
- Browser
- Download file 22 kB
-
https://huggingface.co/spaces/huggingface/paperswithcode/resolve/main/assets/ApiDocsView-B7sP33lI.js
- Command line
-
hf download hf://spaces/huggingface/paperswithcode/assets/ApiDocsView-B7sP33lI.js
-
curl -L -o ApiDocsView-B7sP33lI.js https://huggingface.co/spaces/huggingface/paperswithcode/resolve/main/assets/ApiDocsView-B7sP33lI.js
22 kB
| import{d as m,ay as R,i as x,b as E,j as e}from"./index-BASp1Jlg.js";import{u as I}from"./useDocumentTitle-CMM05SJc.js";import{T}from"./trophy-CEbxwKxa.js";import{D as _}from"./database-CkzQMAnd.js";import{F as S}from"./file-text-DZZy1wIH.js";import{M as O}from"./index-1knUYnUW.js";/** | |
| * @license lucide-react v0.462.0 - ISC | |
| * | |
| * This source code is licensed under the ISC license. | |
| * See the LICENSE file in the root directory of this source tree. | |
| */const v=m("Braces",[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]]);/** | |
| * @license lucide-react v0.462.0 - ISC | |
| * | |
| * This source code is licensed under the ISC license. | |
| * See the LICENSE file in the root directory of this source tree. | |
| */const $=m("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/** | |
| * @license lucide-react v0.462.0 - ISC | |
| * | |
| * This source code is licensed under the ISC license. | |
| * See the LICENSE file in the root directory of this source tree. | |
| */const C=m("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/** | |
| * @license lucide-react v0.462.0 - ISC | |
| * | |
| * This source code is licensed under the ISC license. | |
| * See the LICENSE file in the root directory of this source tree. | |
| */const A=m("ListTree",[["path",{d:"M21 12h-8",key:"1bmf0i"}],["path",{d:"M21 6H8",key:"1pqkrb"}],["path",{d:"M21 18h-8",key:"1tm79t"}],["path",{d:"M3 6v4c0 1.1.9 2 2 2h3",key:"1ywdgy"}],["path",{d:"M3 10v6c0 1.1.9 2 2 2h3",key:"2wc746"}]]),D={queryKey:["public-api-schema"],queryFn:()=>R("/openapi.json",{credentials:"omit"}),staleTime:5*60*1e3};function w(r){var t;const s=new Map;for(const[n,{get:c}]of Object.entries(r)){const l=((t=c.tags)==null?void 0:t[0])??"other";s.set(l,[...s.get(l)??[],{path:n,operation:c}])}return[...s]}function k(r){return r.replace(/^\/api\/v1/,"")}function L(r,s){const t=new URLSearchParams;for(const[n,c]of Object.entries(s["x-example-parameters"]))r.includes(`{${n}}`)?r=r.replace(`{${n}}`,encodeURIComponent(String(c))):t.append(n,String(c));return`https://paperswithcode.co${r}${t.size?`?${t}`:""}`}function F(r){var s,t;return!!((t=(s=r.responses[200])==null?void 0:s.content)!=null&&t["text/plain"])}function M(r,s,t=!1){return s==="Python"?`import requests | |
| response = requests.get(${JSON.stringify(r)}, timeout=30) | |
| response.raise_for_status() | |
| print(response.${t?"text":"json()"})`:s==="JavaScript"?`const response = await fetch(${JSON.stringify(r)}, { | |
| credentials: "omit", | |
| }); | |
| if (!response.ok) throw new Error(\`HTTP \${response.status}\`); | |
| console.log(await response.${t?"text":"json"}());`:`curl --fail-with-body ${JSON.stringify(r)}`}function u(r){return r.$ref?r.$ref.split("/").pop()??"object":r.anyOf?r.anyOf.map(u).join(" | "):r.allOf?r.allOf.map(u).join(" & "):r.enum?r.enum.map(s=>JSON.stringify(s)).join(" | "):r.type==="array"?`array<${u(r.items??{})}>`:r.type??"object"}const B=["curl","Python","JavaScript"],z="https://github.com/huggingface/paperswithcode/issues/new?template=api.yml",U={papers:{label:"Papers",blurb:"Search, recent and trending papers, with code and project links.",icon:S},tasks:{label:"Tasks",blurb:"The research task taxonomy, from image classification to agents.",icon:A},datasets:{label:"Datasets",blurb:"Benchmarks and the task and metric pairs that form leaderboards.",icon:_},evaluations:{label:"Evaluations",blurb:"Reported scores tying a paper to a dataset, task, and metric.",icon:T}};function b(r){return U[r]??{label:r.charAt(0).toUpperCase()+r.slice(1),blurb:"",icon:v}}const J=900,H=[{title:"Find a dataset",path:"/api/v1/datasets/",query:"?q=ImageNet"},{title:"List its tasks",path:"/api/v1/datasets/{dataset_id}/tasks/",query:""},{title:"Pick a metric",path:"/api/v1/datasets/{dataset_id}/tasks/{task_id}/metrics",query:""},{title:"Rank evaluations",path:"/api/v1/evaluations/",query:"?dataset_id=…&task_id=…&ordering=best_rank"}],G=[{status:"400",tone:"warn",text:"Invalid request."},{status:"404",tone:"warn",text:"Record not found."},{status:"422",tone:"warn",text:"Invalid parameter type, value, or missing parameter."},{status:"429",tone:"limit",text:e.jsxs(e.Fragment,{children:["Traffic limit exceeded; obey ",e.jsx("code",{children:"Retry-After"}),"."]})},{status:"5xx",tone:"error",text:"Temporary server failure; retry with bounded backoff."}];function g({value:r}){const[s,t]=x.useState("Copy");async function n(){try{await navigator.clipboard.writeText(r),t("Copied")}catch{t("Select and copy the code below")}}return e.jsxs("div",{className:"api-code",children:[e.jsx("pre",{children:e.jsx("code",{children:r})}),e.jsx("button",{onClick:n,"aria-live":"polite",children:s})]})}function y(){return e.jsx("span",{className:"api-method",children:"GET"})}function V(r){const s=document.getElementById(`model-${r}`);s instanceof HTMLDetailsElement&&(s.open=!0)}function p({schema:r}){if(r.$ref){const s=u(r);return e.jsx("a",{href:`#model-${s}`,onClick:()=>V(s),children:s})}return r.anyOf||r.allOf?e.jsx(e.Fragment,{children:(r.anyOf??r.allOf).map((s,t)=>e.jsxs("span",{children:[t>0&&" | ",e.jsx(p,{schema:s})]},t))}):r.type==="array"?e.jsxs(e.Fragment,{children:["array of ",e.jsx(p,{schema:r.items??{}})]}):e.jsx("code",{children:u(r)})}function N({schema:r}){return e.jsxs(e.Fragment,{children:[["minimum","maximum","minLength","maxLength"].map(s=>r[s]!==void 0&&e.jsxs("small",{children:[s,": ",r[s]]},s)),(r.anyOf??r.allOf??[]).map((s,t)=>e.jsx(N,{schema:s},t))]})}function q({schema:r}){return r.properties?e.jsx("div",{className:"api-table-wrap",children:e.jsxs("table",{children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{children:"Field"}),e.jsx("th",{children:"Type"}),e.jsx("th",{children:"Description"})]})}),e.jsx("tbody",{children:Object.entries(r.properties).map(([s,t])=>{var n;return e.jsxs("tr",{children:[e.jsxs("td",{children:[e.jsx("code",{children:s}),((n=r.required)==null?void 0:n.includes(s))&&e.jsx("small",{children:"required"})]}),e.jsx("td",{children:e.jsx(p,{schema:t})}),e.jsxs("td",{children:[t.description,t.format&&e.jsxs("small",{children:["Format: ",t.format]}),t.default!==void 0&&e.jsxs("small",{children:["Default: ",JSON.stringify(t.default)]}),t.properties&&e.jsx(q,{schema:t}),typeof t.additionalProperties=="object"&&e.jsxs("p",{children:["Values:"," ",e.jsx(p,{schema:t.additionalProperties})]})]})]},s)})})]})}):e.jsx(p,{schema:r})}function W({path:r,operation:s}){var l,o;const[t,n]=x.useState("curl"),c=(l=s.tags)==null?void 0:l[0];return e.jsxs("section",{id:s.operationId,className:"api-endpoint",children:[c&&e.jsx("span",{className:"api-eyebrow",children:b(c).label}),e.jsx("h2",{children:s.summary}),e.jsxs("p",{className:"api-path",children:[e.jsx(y,{})," ",e.jsx("code",{children:r})]}),e.jsx("div",{className:"api-description",children:e.jsx(O,{children:s.description})}),!!((o=s.parameters)!=null&&o.length)&&e.jsxs(e.Fragment,{children:[e.jsx("h3",{children:"Parameters"}),e.jsx("div",{className:"api-table-wrap",children:e.jsxs("table",{children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{children:"Parameter"}),e.jsx("th",{children:"Type"}),e.jsx("th",{children:"Description"})]})}),e.jsx("tbody",{children:s.parameters.map(a=>e.jsxs("tr",{children:[e.jsxs("td",{children:[e.jsx("code",{children:a.name}),e.jsxs("small",{children:[a.in," ·"," ",a.required?"required":"optional"]})]}),e.jsx("td",{children:e.jsx(p,{schema:a.schema})}),e.jsxs("td",{children:[a.description,a.schema.default!==void 0&&e.jsxs("small",{children:["Default: ",JSON.stringify(a.schema.default)]}),e.jsx(N,{schema:a.schema})]})]},`${a.in}-${a.name}`))})]})})]}),e.jsx("h3",{children:"Example request"}),e.jsx("div",{className:"api-languages",role:"group","aria-label":`Example language for ${s.summary}`,children:B.map(a=>e.jsx("button",{"aria-pressed":t===a,onClick:()=>n(a),children:a},a))}),e.jsx(g,{value:M(L(r,s),t,F(s))}),e.jsx("h3",{children:"Responses"}),Object.entries(s.responses).map(([a,i])=>{var d,h;return e.jsxs("div",{className:"api-response",children:[e.jsx("span",{className:`api-status api-status-${a[0]}`,children:a})," ",i.description,((h=(d=i.content)==null?void 0:d["application/json"])==null?void 0:h.schema)&&e.jsxs(e.Fragment,{children:[" ","→"," ",e.jsx(p,{schema:i.content["application/json"].schema})]})]},a)})]})}function K({spec:r}){return e.jsx("div",{className:"api-resources",children:w(r.paths).map(([s,t])=>{const{label:n,blurb:c,icon:l}=b(s);return e.jsxs("article",{className:"api-resource",children:[e.jsxs("header",{children:[e.jsx("span",{className:"api-resource-icon","aria-hidden":"true",children:e.jsx(l,{size:18})}),e.jsx("h3",{children:n})]}),c&&e.jsx("p",{children:c}),e.jsx("ul",{children:t.map(({path:o,operation:a})=>e.jsx("li",{children:e.jsxs("a",{href:`#${a.operationId}`,title:a.summary,children:[e.jsx(y,{}),e.jsx("code",{children:k(o)})]})},o))})]},s)})})}function f(){const r=window.location.hash?document.getElementById(decodeURIComponent(window.location.hash.slice(1))):null;if(!r)return;const s=r.closest("details");s&&(s.open=!0),r.scrollIntoView()}function X(r){x.useLayoutEffect(()=>{const s=r.current,t=document.querySelector(".app-header-inner"),n=t==null?void 0:t.querySelector(".nav"),c=t==null?void 0:t.querySelector(".search-trigger");if(!s||!t||!n||!c)return;const l=()=>{const d=n.getBoundingClientRect().left,h=c.getBoundingClientRect(),j=document.documentElement.clientWidth-h.left,P=h.width>0&&h.left-d>=J;s.classList.toggle("api-docs-banded",P),s.style.setProperty("--api-band-left",`${d}px`),s.style.setProperty("--api-band-right",`${j}px`)},o=new ResizeObserver(l),a=()=>{o.disconnect(),o.observe(document.documentElement);for(const d of t.children)o.observe(d);l()};a();const i=new MutationObserver(a);return i.observe(t,{childList:!0}),()=>{o.disconnect(),i.disconnect()}},[r])}function te(){const r=x.useRef(null);X(r);const{data:s,isPending:t,isError:n,refetch:c}=E(D);I("API documentation — Papers With Code",{restorePrevious:!0}),x.useEffect(()=>{if(!s)return;const a=requestAnimationFrame(f);return window.addEventListener("hashchange",f),()=>{cancelAnimationFrame(a),window.removeEventListener("hashchange",f)}},[s]);const l=s?w(s.paths):[],o=s?Object.keys(s.paths).length:null;return e.jsxs("div",{className:"api-docs",ref:r,children:[e.jsxs("nav",{className:"api-sidebar","aria-label":"API documentation",children:[e.jsx("strong",{children:"API documentation"}),e.jsxs("div",{className:"api-sidebar-group",children:[e.jsx("span",{children:"Guides"}),e.jsx("a",{href:"#getting-started",children:"Getting started"}),e.jsx("a",{href:"#overview",children:"Catalog overview"}),e.jsx("a",{href:"#limits",children:"Traffic limits"}),e.jsx("a",{href:"#pagination",children:"Pagination & identifiers"}),e.jsx("a",{href:"#benchmarks",children:"Reading leaderboards"}),e.jsx("a",{href:"#errors",children:"Errors"}),e.jsx("a",{href:"#changelog",children:"Changelog"})]}),l.map(([a,i])=>e.jsxs("div",{className:"api-sidebar-group",children:[e.jsx("span",{children:b(a).label}),i.map(({path:d,operation:h})=>e.jsxs("a",{href:`#${h.operationId}`,children:[e.jsx(y,{}),h.summary]},d))]},a)),e.jsxs("div",{className:"api-sidebar-group",children:[e.jsx("span",{children:"Reference"}),e.jsx("a",{href:"#response-models",children:"Response models"})]})]}),e.jsxs("div",{className:"api-content",children:[e.jsxs("section",{id:"getting-started",className:"api-hero",children:[e.jsx("span",{className:"api-beta",children:"Experimental beta"}),e.jsx("h1",{children:"Papers with Code API"}),e.jsx("p",{className:"api-lead",children:"Find papers, explore benchmarks, and bring research results into your scripts and applications."}),e.jsxs("div",{className:"api-facts",children:[e.jsxs("div",{children:[e.jsx(C,{size:18,"aria-hidden":"true"}),e.jsx("b",{children:"No API key"}),e.jsx("span",{children:"Free, anonymous, read-only access"})]}),e.jsxs("div",{children:[e.jsx($,{size:18,"aria-hidden":"true"}),e.jsx("b",{children:"120 / minute"}),e.jsx("span",{children:"Per IP, with short bursts"})]}),e.jsxs("div",{children:[e.jsx(v,{size:18,"aria-hidden":"true"}),e.jsx("b",{children:o===null?"OpenAPI":`${o} endpoints`}),e.jsx("span",{children:"JSON responses, OpenAPI schema"})]})]}),e.jsx("p",{children:"No account or API key required. The public beta covers paper search, core catalog lookups, and paper full text."}),e.jsxs("p",{children:[e.jsx("a",{href:"https://paperswithcode.co/api/v1/openapi.json",children:"Download the public OpenAPI specification"})," ","· ",e.jsx("a",{href:"/docs/api.md",children:"Read this guide as Markdown"})," ·"," ",e.jsx("a",{href:z,children:"Report a bug or request a feature"})]}),e.jsx("h2",{children:"Your first request"}),e.jsxs("div",{className:"api-terminal",children:[e.jsx("div",{className:"api-terminal-bar","aria-hidden":"true",children:"Shell"}),e.jsx(g,{value:'curl --fail-with-body "https://paperswithcode.co/api/v1/papers/search?q=attention&page_size=5"'})]}),e.jsxs("p",{children:["Responses are JSON. Python examples require"," ",e.jsx("code",{children:"pip install requests"}),"; JavaScript examples use built-in"," ",e.jsx("code",{children:"fetch"}),". Browser requests from any origin are supported for these public reads: omit cookies and authorization headers."]}),e.jsxs("p",{children:["Base URL: ",e.jsx("code",{children:"https://paperswithcode.co/api/v1"})]})]}),e.jsxs("section",{id:"overview",children:[e.jsx("h2",{children:"Catalog overview"}),e.jsx("p",{children:"Four resources make up the catalog. Evaluations connect them: each one is a score a paper reports on a dataset for a task."}),s?e.jsx(K,{spec:s}):e.jsx("p",{className:"api-muted",children:"The endpoint overview loads with the reference below."})]}),e.jsxs("section",{id:"limits",children:[e.jsx("h2",{children:"Traffic limits"}),e.jsxs("div",{className:"api-limits",children:[e.jsxs("div",{children:[e.jsx("b",{children:"120"}),e.jsx("span",{children:"requests/minute"}),e.jsx("p",{children:"All catalog reads · bursts of up to 60 more"})]}),e.jsxs("div",{children:[e.jsx("b",{children:"60"}),e.jsx("span",{children:"requests/minute"}),e.jsx("p",{children:"List and search endpoints · bursts of up to 20 more"})]})]}),e.jsx("p",{children:"Each IP address shares a catalog allowance of 120 requests/minute. List and search endpoints also share a stricter allowance of 60 requests/minute. These are sustained rates with short bursts of up to 60 and 20 excess requests respectively, not fixed-minute quotas."}),e.jsxs("p",{children:["Successful responses carry a ",e.jsx("code",{children:"RateLimit-Policy"})," header naming the allowances that apply, for example"," ",e.jsx("code",{children:'"catalog";q=120;w=60, "list";q=60;w=60'}),". Remaining counts are not reported, because the limits are enforced at the edge."]}),e.jsxs("p",{children:["Website browsing and scripts on the same network share these limits. Send requests sequentially, cache results, and avoid parallel crawls. On HTTP 429, wait at least the ",e.jsx("code",{children:"Retry-After"})," ","duration, then retry with increasing delays and jitter. Browser preflight requests do not consume this allowance."]})]}),e.jsxs("section",{id:"pagination",children:[e.jsx("h2",{children:"Pagination & identifiers"}),e.jsxs("p",{children:["Paginated endpoints return ",e.jsx("code",{children:"results"}),","," ",e.jsx("code",{children:"next_page"}),", and ",e.jsx("code",{children:"previous_page"}),". Catalog lists also return ",e.jsx("code",{children:"count"}),"; paper search omits it. Pass"," ",e.jsx("code",{children:"page"})," and ",e.jsx("code",{children:"page_size"}),"; stop when"," ",e.jsx("code",{children:"next_page"})," is null. Recent and trending endpoints instead return arrays bounded by ",e.jsx("code",{children:"limit"}),"."]}),e.jsxs("p",{children:["Paper listing and search stop at page 100, where"," ",e.jsx("code",{children:"next_page"})," is null. To go further, list"," ",e.jsx("code",{children:"/papers/"})," with ",e.jsx("code",{children:"order_by=date_published"})," or"," ",e.jsx("code",{children:"citation_count"})," and pass each response's"," ",e.jsx("code",{children:"next_cursor"})," back as ",e.jsx("code",{children:"cursor"})," with the same filters; cursors have no page limit. Counts and page contents may change as the catalog updates; a listing is not a snapshot."]}),e.jsxs("p",{children:["The default ",e.jsx("code",{children:"order_by=trending"})," lists only papers with a recent trending score when no search, date, or catalog filter is set. With a filter it covers the whole catalog and unscored papers sort last."]}),e.jsxs("p",{children:["Use identifiers returned by lookups. Paper endpoints, including full text, accept an arXiv ID or numeric catalog ID; the arXiv endpoint takes an arXiv ID. A version suffix on paper detail is ignored and the latest version is returned: request an exact version from the arXiv endpoint with ",e.jsx("code",{children:"?version="}),". Task and dataset detail accept their catalog IDs or slugs. Leaderboard metrics require numeric task and dataset IDs. Evaluation filters such as ",e.jsx("code",{children:"dataset_id"})," and ",e.jsx("code",{children:"task_id"})," require numeric catalog IDs. Example IDs may no longer exist: replace them with current lookup results."]})]}),e.jsxs("section",{id:"benchmarks",children:[e.jsx("h2",{children:"Reading leaderboards"}),e.jsx("ol",{className:"api-steps",children:H.map((a,i)=>{var j;const d=(j=s==null?void 0:s.paths[a.path])==null?void 0:j.get.operationId,h=e.jsxs("code",{children:[k(a.path),a.query]});return e.jsxs("li",{children:[e.jsx("span",{className:"api-step-number","aria-hidden":"true",children:i+1}),e.jsx("b",{children:a.title}),d?e.jsx("a",{href:`#${d}`,children:h}):h]},a.path)})}),e.jsxs("p",{children:["Search datasets, select a dataset, then fetch its tasks and the metrics for a dataset/task pair. Fetch"," ",e.jsx("code",{children:"/evaluations/?dataset_id=…&task_id=…&ordering=best_rank"})," ","using the numeric IDs. An evaluation includes reported scores and source information; check metric direction, split, and evaluation setup before comparing results."]}),e.jsxs("p",{children:["Use ",e.jsx("code",{children:"include_resources=true"})," on paper list/detail requests for linked repositories and project pages; without it those fields are always null, so null means not requested. Missing fields or null values mean data is unavailable; they are not zero scores. Evaluation ",e.jsx("code",{children:"metrics"})," are strings as reported;"," ",e.jsx("code",{children:"metric_values"})," holds the same values as numbers. A task with no leaderboard on a dataset returns 404 from the metrics endpoint, and unsupported ",e.jsx("code",{children:"ordering"})," values return 422."]})]}),e.jsxs("section",{id:"errors",children:[e.jsx("h2",{children:"Errors"}),e.jsxs("p",{children:["Check the HTTP status before parsing a successful result. Every error from these endpoints has a stable, machine-readable"," ",e.jsx("code",{children:"code"})," string, such as ",e.jsx("code",{children:"not_found"}),","," ",e.jsx("code",{children:"validation_error"}),", or ",e.jsx("code",{children:"rate_limited"}),", and a human-readable ",e.jsx("code",{children:"detail"}),". For validation errors"," ",e.jsx("code",{children:"detail"})," lists the invalid parameters."]}),e.jsx("ul",{className:"api-errors",children:G.map(({status:a,tone:i,text:d})=>e.jsxs("li",{children:[e.jsx("span",{className:`api-status api-status-${i}`,children:a}),e.jsx("span",{children:d})]},a))}),e.jsx(g,{value:'{ "detail": "API traffic limit exceeded. Retry with backoff.", "code": "rate_limited" }'})]}),e.jsxs("section",{id:"changelog",children:[e.jsx("h2",{children:"Changelog"}),e.jsx("h3",{children:"November 26, 2026"}),e.jsxs("p",{children:["Errors gain a top-level ",e.jsx("code",{children:"code"}),". ",e.jsx("code",{children:"/papers/"})," ","gains ",e.jsx("code",{children:"cursor"})," and ",e.jsx("code",{children:"next_cursor"}),". Trending papers gain ",e.jsx("code",{children:"id"})," and ",e.jsx("code",{children:"published"}),", evaluations gain ",e.jsx("code",{children:"metric_values"}),", and datasets gain"," ",e.jsx("code",{children:"catalog_url"}),". Paper full text and public metadata join the reference. Unsupported ",e.jsx("code",{children:"ordering"})," values and unlinked leaderboard metrics now return 422 and 404. Search and date filters on ",e.jsx("code",{children:"/papers/"})," cover the whole catalog with the default trending order."]}),e.jsx("h3",{children:"Initial experimental beta"}),e.jsx("p",{children:"Core catalog reads, keyword search, public schemas, and anonymous browser access. Planned breaking changes will be announced here at least 14 days before they take effect. Urgent security and service-restoration fixes may take effect immediately. This beta has no uptime or support-response guarantee."})]}),t&&e.jsx("p",{role:"status",children:"Loading endpoint reference…"}),n&&e.jsxs("div",{role:"alert",children:[e.jsx("p",{children:"Could not load the endpoint reference."}),e.jsx("button",{onClick:()=>void c(),children:"Retry"})]}),s&&e.jsxs(e.Fragment,{children:[Object.entries(s.paths).map(([a,{get:i}])=>e.jsx(W,{path:a,operation:i},a)),e.jsxs("section",{id:"response-models",children:[e.jsx("h2",{children:"Response models"}),e.jsx("p",{className:"api-muted",children:"Expand a model to see its fields. Type links jump to the model."}),Object.entries(s.components.schemas).map(([a,i])=>e.jsxs("details",{id:`model-${a}`,className:"api-model",children:[e.jsxs("summary",{children:[e.jsx("code",{children:a}),i.description&&e.jsx("span",{children:i.description})]}),e.jsx(q,{schema:i})]},a))]})]})]})]})}export{te as default}; | |