OpenAPI Additional Operations

OpenAPI 추가 HTTP 연산

OpenAPI 3.2 additionalOperations describes HTTP methods outside the fixed method fields.

···
html
<div class="viz"><h3>PATH /items/{id}</h3><div class="row"><div class="box code">GET<br>POST</div><span class="arrow">+</span><div class="box code" id="extra">COPY</div><span class="arrow">→</span><div class="box" id="docs">3 operations</div></div><div class="muted">additionalOperations map</div></div>
css
.viz{width:94%;height:88%;max-width:960px;padding:clamp(10px,2vmin,18px);border:1px solid var(--line);border-radius:14px;background:var(--surface);font:600 clamp(12px,1.35vw,16px)/1.35 var(--font-sans,system-ui,sans-serif);display:flex;flex-direction:column;gap:clamp(7px,1.8vmin,13px);overflow:hidden}.viz h3{margin:0;color:var(--accent);font:700 clamp(12px,1.35vw,16px)/1.2 var(--font-sans,system-ui,sans-serif);letter-spacing:.04em}.viz .row{display:flex;align-items:center;justify-content:center;gap:clamp(5px,1.4vmin,12px);flex:1;min-height:0}.viz .box{padding:clamp(5px,1.5vmin,12px);border:1px solid var(--line);border-radius:9px;background:var(--bg);text-align:center}.viz .muted{color:var(--muted)}.viz .accent{color:var(--accent)}.viz .code{font-family:ui-monospace,monospace}.viz .pill{padding:3px 7px;border:1px solid var(--line);border-radius:99px;white-space:nowrap}.viz .active{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 12%,var(--surface))}.viz .arrow{color:var(--accent);font:700 18px ui-monospace,monospace}#extra{color:var(--accent-2);transition:opacity .3s}#extra.off{opacity:.18}#docs{min-width:25%;border-color:var(--accent)}
js
let added=true;function draw(){added=!added;document.getElementById('extra').classList.toggle('off',!added);document.getElementById('docs').textContent=added?'3 operations':'2 operations'}draw();setInterval(draw,1700)

An OpenAPI Path Item has fixed fields for common methods such as GET and POST. In 3.2, additionalOperations is a map for other HTTP method names. The specification can describe a COPY operation with the same Operation Object structure used elsewhere.

The demo adds COPY /items/{id} to the description and reveals a new operation card. Describability is separate from actual server or proxy support, which must be tested in the deployment path.

When to use

Use it when an API contract must describe a method outside OpenAPI fixed operation fields.

Open as page ↗