Skip to content

Commit

Permalink
chore: add operationId fields in api spec
Browse files Browse the repository at this point in the history
  • Loading branch information
helmturner committed May 13, 2024
1 parent e2e0658 commit c48c40c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions public/docs/api/v0/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
}
},
"post": {
"operationId": "createDraft",
"summary": "Create a new draft",
"requestBody": {
"required": true,
Expand Down Expand Up @@ -71,6 +72,7 @@
}
},
"put": {
"operationId": "putDraft",
"summary": "Replace an existing draft",
"parameters": [{ "$ref": "#/components/parameters/RecordId" }],
"requestBody": {
Expand Down Expand Up @@ -114,6 +116,7 @@
}
},
"patch": {
"operationId": "patchDraft",
"summary": "Update an existing draft",
"parameters": [{ "$ref": "#/components/parameters/RecordId" }],
"requestBody": {
Expand Down Expand Up @@ -144,6 +147,7 @@
}
},
"delete": {
"operationId": "deleteDraft",
"summary": "Delete a draft by ID",
"parameters": [{ "$ref": "#/components/parameters/RecordId" }],
"responses": {
Expand All @@ -157,6 +161,7 @@
"/proposals": {
"summary": "Create or list proposals",
"get": {
"operationId": "listProposals",
"summary": "Get a list of the proposals with pagination, filtering, and sorting",
"parameters": [
{ "$ref": "#/components/parameters/AuthorizationOptional" },
Expand All @@ -178,6 +183,7 @@
}
},
"post": {
"operationId": "createProposal",
"summary": "Create a new proposal",
"parameters": [
{ "$ref": "#/components/parameters/AuthorizationRequired" }
Expand Down Expand Up @@ -217,6 +223,7 @@
{ "$ref": "#/components/parameters/RecordId" }
],
"post": {
"operationId": "submitVote",
"summary": "Submit (or update) a vote on a proposal",
"requestBody": {
"required": true,
Expand Down Expand Up @@ -245,6 +252,7 @@
}
},
"delete": {
"operationId": "deleteVote",
"summary": "Delete a user's proposal vote",
"responses": {
"204": { "$ref": "#/components/responses/204" },
Expand Down

0 comments on commit c48c40c

Please sign in to comment.