Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update web-server.json #2402

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
113 changes: 31 additions & 82 deletions docs/swagger/reference/web-server.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"info": {
"title": "web server",
"version": "1.0",
"summary": "HELICS web server API",
"description": "Description of the services from a Helics web server for broker management",
"contact": {
"name": "Philip Top"
Expand All @@ -24,16 +23,6 @@
"summary": "Get Index page",
"operationId": "index",
"description": "Get the index page no properties",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {}
}
}
}
},
"responses": {
"200": {
"description": "OK",
Expand Down Expand Up @@ -85,7 +74,18 @@
},
"description": "Post the necessary fields for the API to create a new broker."
},
"description": "Create a new broker"
"description": "Create a new broker",
"parameters": [
{
"schema": {
"type": "string"
},
"name": "broker_id",
"in": "path",
"required": true,
"description": "name of the broker"
}
]
},
"get": {
"summary": "run a query on a broker",
Expand Down Expand Up @@ -118,41 +118,13 @@
"schema": {
"type": "string"
},
"in": "query",
"name": "target",
"description": "query target"
},
{
"schema": {
"type": "string"
},
"in": "query",
"name": "query",
"description": "name of the query"
"name": "broker_id",
"in": "path",
"required": true,
"description": "name of the broker"
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "../models/webQueryInfo.yaml"
}
}
},
"description": "additional information including targets and query string for the target"
}
]
},
"parameters": [
{
"schema": {
"type": "string"
},
"name": "broker_id",
"in": "path",
"required": true,
"description": "name of the broker"
}
],
"delete": {
"summary": "",
"operationId": "delete-broker_id",
Expand All @@ -161,7 +133,18 @@
"description": "OK"
}
},
"description": "remove a broker"
"description": "remove a broker",
"parameters": [
{
"schema": {
"type": "string"
},
"name": "broker_id",
"in": "path",
"required": true,
"description": "name of the broker"
}
]
}
},
"/{broker_id}/{target_id}/{query}": {
Expand Down Expand Up @@ -307,16 +290,6 @@
},
"operationId": "get-broker_id-query",
"description": "make a query on a specific broker or target on the default broker equivalent to broker/target, target/query",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "../models/webQueryInfo.yaml"
}
}
},
"description": "This is supplying 2 parameters in the address, the parameters can also be supplied as a qeury parameter or in the body"
},
"parameters": [
{
"schema": {
Expand Down Expand Up @@ -390,16 +363,7 @@
}
},
"operationId": "get-search-target_id",
"description": "search for a specific object or broker and get its information",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "../models/webQueryInfo.yaml"
}
}
}
}
"description": "search for a specific object or broker and get its information"
}
},
"/{broker_id}/barrier": {
Expand Down Expand Up @@ -777,22 +741,7 @@
"name": "uuid",
"description": "uuid of the broker"
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "../models/webQueryInfo.yaml"
}
},
"application/xml": {
"schema": {
"$ref": ""
}
}
},
"description": ""
}
]
}
},
"/healthcheck": {
Expand Down