|
7540 | 7540 | "tags": [ |
7541 | 7541 | "hidden" |
7542 | 7542 | ], |
7543 | | - "summary": "OPTIONS endpoint.", |
7544 | | - "description": "This is necessary for some preflight requests, specifically POST, PUT, and DELETE.", |
| 7543 | + "summary": "Preflight `/oauth2/token` for browser-based OAuth clients.", |
7545 | 7544 | "operationId": "options_oauth2_token", |
| 7545 | + "parameters": [ |
| 7546 | + { |
| 7547 | + "in": "query", |
| 7548 | + "name": "client_id", |
| 7549 | + "description": "The OAuth app client ID.\n\nBrowser preflight requests cannot include the form-encoded token request body, so callers that need a preflight can include this in the query string to let us keep CORS app-scoped.", |
| 7550 | + "schema": { |
| 7551 | + "nullable": true, |
| 7552 | + "type": "string", |
| 7553 | + "format": "uuid" |
| 7554 | + } |
| 7555 | + } |
| 7556 | + ], |
7546 | 7557 | "responses": { |
7547 | | - "204": { |
7548 | | - "description": "resource updated", |
7549 | | - "headers": { |
7550 | | - "Access-Control-Allow-Credentials": { |
7551 | | - "description": "Access-Control-Allow-Credentials header.", |
7552 | | - "style": "simple", |
7553 | | - "schema": { |
7554 | | - "nullable": true, |
7555 | | - "type": "string" |
7556 | | - } |
7557 | | - }, |
7558 | | - "Access-Control-Allow-Headers": { |
7559 | | - "description": "Access-Control-Allow-Headers header. This is a comma-separated list of headers.", |
7560 | | - "style": "simple", |
7561 | | - "schema": { |
7562 | | - "nullable": true, |
7563 | | - "type": "string" |
7564 | | - } |
7565 | | - }, |
7566 | | - "Access-Control-Allow-Methods": { |
7567 | | - "description": "Access-Control-Allow-Methods header.", |
7568 | | - "style": "simple", |
7569 | | - "schema": { |
7570 | | - "nullable": true, |
7571 | | - "type": "string" |
7572 | | - } |
7573 | | - }, |
7574 | | - "Access-Control-Allow-Origin": { |
7575 | | - "description": "Access-Control-Allow-Origin header.", |
7576 | | - "style": "simple", |
7577 | | - "schema": { |
7578 | | - "nullable": true, |
7579 | | - "type": "string" |
7580 | | - } |
7581 | | - }, |
7582 | | - "Content-Location": { |
7583 | | - "description": "The Content-Location header for responses that are not the final destination. This is used to indicate where the resource can be found, when it is finished.", |
7584 | | - "style": "simple", |
7585 | | - "schema": { |
7586 | | - "nullable": true, |
7587 | | - "type": "string" |
7588 | | - } |
7589 | | - }, |
7590 | | - "Location": { |
7591 | | - "description": "The location header for redirects and letting users know if there is a websocket they can listen to for status updates on their operation.", |
7592 | | - "style": "simple", |
7593 | | - "schema": { |
7594 | | - "nullable": true, |
7595 | | - "type": "string" |
7596 | | - } |
7597 | | - }, |
7598 | | - "Set-Cookie": { |
7599 | | - "description": "Set-Cookie header.", |
7600 | | - "style": "simple", |
7601 | | - "schema": { |
7602 | | - "nullable": true, |
7603 | | - "type": "string" |
7604 | | - } |
7605 | | - }, |
7606 | | - "X-Api-Call-Id": { |
7607 | | - "description": "ID for this request. We return it so that users can report this to us and help us debug their problems.", |
7608 | | - "style": "simple", |
7609 | | - "required": true, |
7610 | | - "schema": { |
7611 | | - "type": "string" |
7612 | | - } |
| 7558 | + "default": { |
| 7559 | + "description": "", |
| 7560 | + "content": { |
| 7561 | + "*/*": { |
| 7562 | + "schema": {} |
7613 | 7563 | } |
7614 | 7564 | } |
7615 | | - }, |
7616 | | - "4XX": { |
7617 | | - "$ref": "#/components/responses/Error" |
7618 | | - }, |
7619 | | - "5XX": { |
7620 | | - "$ref": "#/components/responses/Error" |
7621 | 7565 | } |
7622 | 7566 | } |
7623 | 7567 | } |
|
0 commit comments