Skip to content

Commit

Permalink
Updated swaggers (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
benknoll-umn committed May 18, 2020
1 parent f11490c commit 9d3636d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
26 changes: 13 additions & 13 deletions go/mtap/api/v1/events.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"/v1/events/{event_id}": {
"delete": {
"summary": "Cedes a lease for an event, allowing this service to delete the\nevent if no active leases remain.",
"operationId": "CloseEvent",
"operationId": "Events_CloseEvent",
"responses": {
"200": {
"description": "A successful response.",
Expand Down Expand Up @@ -52,7 +52,7 @@
},
"post": {
"summary": "Acquires a lease for an event, which will prevent this service\nfrom deleting the event while the lease is still valid. Can be used to\neither create new events or return existing events.",
"operationId": "OpenEvent",
"operationId": "Events_OpenEvent",
"responses": {
"200": {
"description": "A successful response.",
Expand Down Expand Up @@ -91,7 +91,7 @@
},
"/v1/events/{event_id}/binaries": {
"get": {
"operationId": "GetAllBinaryDataNames",
"operationId": "Events_GetAllBinaryDataNames",
"responses": {
"200": {
"description": "A successful response.",
Expand Down Expand Up @@ -122,7 +122,7 @@
},
"/v1/events/{event_id}/binaries/{binary_data_name}": {
"get": {
"operationId": "GetBinaryData",
"operationId": "Events_GetBinaryData",
"responses": {
"200": {
"description": "A successful response.",
Expand Down Expand Up @@ -158,7 +158,7 @@
]
},
"post": {
"operationId": "AddBinaryData",
"operationId": "Events_AddBinaryData",
"responses": {
"200": {
"description": "A successful response.",
Expand Down Expand Up @@ -205,7 +205,7 @@
"/v1/events/{event_id}/documents": {
"get": {
"summary": "Returns the names keys of all documents that are stored on an event.",
"operationId": "GetAllDocumentNames",
"operationId": "Events_GetAllDocumentNames",
"responses": {
"200": {
"description": "A successful response.",
Expand Down Expand Up @@ -237,7 +237,7 @@
"/v1/events/{event_id}/documents/{document_name}": {
"get": {
"summary": "Returns the text of a document.",
"operationId": "GetDocumentText",
"operationId": "Events_GetDocumentText",
"responses": {
"200": {
"description": "A successful response.",
Expand Down Expand Up @@ -274,7 +274,7 @@
},
"post": {
"summary": "Adds a new document to an event.",
"operationId": "AddDocument",
"operationId": "Events_AddDocument",
"responses": {
"200": {
"description": "A successful response.",
Expand Down Expand Up @@ -321,7 +321,7 @@
"/v1/events/{event_id}/documents/{document_name}/labels": {
"get": {
"summary": "Returns the names keys of all label indices that are stored on a document.",
"operationId": "GetLabelIndicesInfo",
"operationId": "Events_GetLabelIndicesInfo",
"responses": {
"200": {
"description": "A successful response.",
Expand Down Expand Up @@ -360,7 +360,7 @@
"/v1/events/{event_id}/documents/{document_name}/labels/{index_name}": {
"get": {
"summary": "Gets all of the labels for a single label index.",
"operationId": "GetLabels",
"operationId": "Events_GetLabels",
"responses": {
"200": {
"description": "A successful response.",
Expand Down Expand Up @@ -404,7 +404,7 @@
},
"post": {
"summary": "Adds a single label index to the document.",
"operationId": "AddLabels",
"operationId": "Events_AddLabels",
"responses": {
"200": {
"description": "A successful response.",
Expand Down Expand Up @@ -458,7 +458,7 @@
"/v1/events/{event_id}/metadata": {
"get": {
"summary": "Endpoint to get all metadata associated with an event.",
"operationId": "GetAllMetadata",
"operationId": "Events_GetAllMetadata",
"responses": {
"200": {
"description": "A successful response.",
Expand Down Expand Up @@ -490,7 +490,7 @@
"/v1/events/{event_id}/metadata/{key}": {
"post": {
"summary": "Adds a new metadata entry to an event.",
"operationId": "AddMetadata",
"operationId": "Events_AddMetadata",
"responses": {
"200": {
"description": "A successful response.",
Expand Down
6 changes: 3 additions & 3 deletions go/mtap/api/v1/processing.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"/v1/processors/{processor_id}/info": {
"get": {
"summary": "Gets information about the processor.",
"operationId": "GetInfo",
"operationId": "Processor_GetInfo",
"responses": {
"200": {
"description": "A successful response.",
Expand Down Expand Up @@ -46,7 +46,7 @@
"/v1/processors/{processor_id}/process/{event_id}": {
"post": {
"summary": "Processes an event.",
"operationId": "Process",
"operationId": "Processor_Process",
"responses": {
"200": {
"description": "A successful response.",
Expand Down Expand Up @@ -93,7 +93,7 @@
"/v1/processors/{processor_id}/stats": {
"get": {
"summary": "Gets globally-aggregated statistics about the processor.",
"operationId": "GetStats",
"operationId": "Processor_GetStats",
"responses": {
"200": {
"description": "A successful response.",
Expand Down

0 comments on commit 9d3636d

Please sign in to comment.