Skip to content

Commit 5eed3ee

Browse files
Update api spec (#1609)
YOYO NEW API SPEC! Co-authored-by: zoo-github-actions-auth[bot] <zoo-github-actions-auth[bot]@users.noreply.github.com>
1 parent 0773e12 commit 5eed3ee

1 file changed

Lines changed: 18 additions & 74 deletions

File tree

spec.json

Lines changed: 18 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -7540,84 +7540,28 @@
75407540
"tags": [
75417541
"hidden"
75427542
],
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.",
75457544
"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+
],
75467557
"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": {}
76137563
}
76147564
}
7615-
},
7616-
"4XX": {
7617-
"$ref": "#/components/responses/Error"
7618-
},
7619-
"5XX": {
7620-
"$ref": "#/components/responses/Error"
76217565
}
76227566
}
76237567
}

0 commit comments

Comments
 (0)