Skip to content

Commit

Permalink
feat: Update web-server.json
Browse files Browse the repository at this point in the history
  • Loading branch information
kdheepak committed Jul 16, 2022
1 parent 5b34d50 commit eb0f094
Showing 1 changed file with 41 additions and 87 deletions.
128 changes: 41 additions & 87 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 All @@ -51,11 +40,11 @@
},
"/{broker_id}": {
"post": {
"summary": "Create New Broker",
"summary": "Create New User",
"operationId": "post-broker",
"responses": {
"200": {
"description": "Broker Created",
"description": "User Created",
"content": {
"application/json": {
"schema": {
Expand Down Expand Up @@ -83,9 +72,20 @@
"examples": {}
}
},
"description": "Post the necessary fields for the API to create a new broker."
"description": "Post the necessary fields for the API to create a new user."
},
"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 @@ -509,7 +473,10 @@
"minLength": 1
}
},
"required": ["status", "error"],
"required": [
"status",
"error"
],
"x-examples": {
"example-1": {
"status": 400,
Expand Down Expand Up @@ -777,22 +744,7 @@
"name": "uuid",
"description": "uuid of the broker"
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "../models/webQueryInfo.yaml"
}
},
"application/xml": {
"schema": {
"$ref": ""
}
}
},
"description": ""
}
]
}
},
"/healthcheck": {
Expand All @@ -811,7 +763,9 @@
"type": "boolean"
}
},
"required": ["success"],
"required": [
"success"
],
"x-examples": {
"example-1": {
"success": true
Expand Down

0 comments on commit eb0f094

Please sign in to comment.