Skip to content

Commit

Permalink
Update openapi.yaml with server Swagger @tag-s now
Browse files Browse the repository at this point in the history
These additions again come from the generated openapi.yaml using [1,2]
below. Change [1] being the head of a related short series of
tag-related changes, that is.

The other differences come from Swagger's varying way of generating yaml
data across invocations, these being insignificant still now.

The sorting of these server tags in ./openapi.yaml is automatically done
by Swagger, based on [1]'s implementation too. More annotations remain
to be added in, such as support for summaries and descriptions; next.

[1] https://git.eclipse.org/r/c/tracecompass.incubator/org.eclipse.tracecompass.incubator/+/186185
[2] https://github.com/theia-ide/trace-server-protocol/pull/62/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R38

Signed-off-by: Marco Miller <marco.miller@ericsson.com>
  • Loading branch information
marco-miller committed Oct 13, 2021
1 parent e6d485a commit 51cd9e1
Showing 1 changed file with 97 additions and 3 deletions.
100 changes: 97 additions & 3 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,39 @@ info:
servers:
- url: https://localhost:8080/tsp/api
variables: {}
tags:
- name: Annotations
description: Retrieve annotations for different outputs.
- name: Bookmarks
description: How to bookmark areas of interest in the trace.
- name: Diagnostic
description: Refer to the server's status.
- name: Data Tree
description: Learn about querying generic data tree models.
- name: Experiments
description: "How to manage experiments on your server; an experiment represents\
\ a collection of traces, which can produce output models."
- name: Features
description: Discover the features which are available on a given server.
- name: Filters
description: How to filter and query.
- name: Styles
description: Retrieve styles for different outputs.
- name: TimeGraph
description: Learn about querying Time Graph models.
- name: Traces
description: How to manage physical traces on your server.
- name: Virtual Tables
description: Learn about querying virtual table models (e.g. Events Table).
- name: XML
description: Learn about querying XML analyses.
- name: XY
description: Learn about querying XY models.
paths:
/experiments/{expUUID}/outputs/{outputId}/annotations:
get:
tags:
- Annotations
operationId: getAnnotationCategories
parameters:
- name: expUUID
Expand All @@ -56,6 +86,8 @@ paths:
content:
application/json: {}
post:
tags:
- Annotations
operationId: getAnnotations
parameters:
- name: expUUID
Expand All @@ -81,6 +113,8 @@ paths:
application/json: {}
/experiments/{expUUID}/outputs/timeGraph/{outputId}/arrows:
post:
tags:
- TimeGraph
operationId: getArrows
parameters:
- name: expUUID
Expand All @@ -106,6 +140,8 @@ paths:
application/json: {}
/experiments/{expUUID}/outputs/table/{outputId}/columns:
post:
tags:
- Virtual Tables
operationId: getColumns
parameters:
- name: expUUID
Expand All @@ -131,6 +167,8 @@ paths:
application/json: {}
/experiments/{expUUID}/outputs/table/{outputId}/lines:
post:
tags:
- Virtual Tables
operationId: getLines
parameters:
- name: expUUID
Expand All @@ -156,6 +194,8 @@ paths:
application/json: {}
/experiments/{expUUID}/outputs/markerSets:
get:
tags:
- Annotations
operationId: getMarkerSets
parameters:
- name: expUUID
Expand All @@ -171,6 +211,8 @@ paths:
application/json: {}
/experiments/{expUUID}/outputs/{outputId}:
get:
tags:
- Experiments
operationId: getProvider
parameters:
- name: expUUID
Expand All @@ -191,6 +233,8 @@ paths:
application/json: {}
/experiments/{expUUID}/outputs:
get:
tags:
- Experiments
operationId: getOutputs
parameters:
- name: expUUID
Expand All @@ -206,6 +250,8 @@ paths:
application/json: {}
/experiments/{expUUID}/outputs/timeGraph/{outputId}/states:
post:
tags:
- TimeGraph
operationId: getStates
parameters:
- name: expUUID
Expand All @@ -231,6 +277,8 @@ paths:
application/json: {}
/experiments/{expUUID}/outputs/{outputId}/style:
post:
tags:
- Styles
operationId: getStyles
parameters:
- name: expUUID
Expand All @@ -256,6 +304,8 @@ paths:
application/json: {}
/experiments/{expUUID}/outputs/timeGraph/{outputId}/tooltip:
post:
tags:
- TimeGraph
operationId: getTimeGraphTooltip
parameters:
- name: expUUID
Expand All @@ -281,6 +331,8 @@ paths:
application/json: {}
/experiments/{expUUID}/outputs/timeGraph/{outputId}/tree:
post:
tags:
- TimeGraph
operationId: getTimeGraphTree
parameters:
- name: expUUID
Expand All @@ -306,6 +358,8 @@ paths:
application/json: {}
/experiments/{expUUID}/outputs/XY/{outputId}/xy:
post:
tags:
- XY
operationId: getXY
parameters:
- name: expUUID
Expand All @@ -331,6 +385,8 @@ paths:
application/json: {}
/experiments/{expUUID}/outputs/XY/{outputId}/tooltip:
get:
tags:
- XY
operationId: getXYTooltip
parameters:
- name: expUUID
Expand Down Expand Up @@ -366,6 +422,8 @@ paths:
application/json: {}
/experiments/{expUUID}/outputs/XY/{outputId}/tree:
post:
tags:
- XY
operationId: getXYTree
parameters:
- name: expUUID
Expand All @@ -391,6 +449,8 @@ paths:
application/json: {}
/experiments/{expUUID}:
get:
tags:
- Experiments
operationId: getExperiment
parameters:
- name: expUUID
Expand All @@ -405,6 +465,8 @@ paths:
content:
application/json: {}
delete:
tags:
- Experiments
operationId: deleteExperiment
parameters:
- name: expUUID
Expand All @@ -420,13 +482,17 @@ paths:
application/json: {}
/experiments:
get:
tags:
- Experiments
operationId: getExperiments
responses:
default:
description: default response
content:
application/json: {}
post:
tags:
- Experiments
operationId: postExperiment
requestBody:
content:
Expand All @@ -440,13 +506,17 @@ paths:
application/json: {}
/filters:
get:
tags:
- Filters
operationId: getFilters
responses:
default:
description: default response
content:
application/json: {}
post:
tags:
- Filters
operationId: createFilter
requestBody:
content:
Expand All @@ -460,6 +530,8 @@ paths:
application/json: {}
/filters/{filterId}:
get:
tags:
- Filters
operationId: getFilter
parameters:
- name: filterId
Expand All @@ -473,6 +545,8 @@ paths:
content:
application/json: {}
put:
tags:
- Filters
operationId: updateFilter
parameters:
- name: filterId
Expand All @@ -491,6 +565,8 @@ paths:
content:
application/json: {}
delete:
tags:
- Filters
operationId: deleteFilter
parameters:
- name: filterId
Expand All @@ -505,6 +581,8 @@ paths:
application/json: {}
/health:
get:
tags:
- Diagnostic
operationId: getHealthStatus
responses:
default:
Expand All @@ -513,6 +591,8 @@ paths:
application/json: {}
/traces/{uuid}:
get:
tags:
- Traces
operationId: getTrace
parameters:
- name: uuid
Expand All @@ -527,6 +607,8 @@ paths:
content:
application/json: {}
delete:
tags:
- Traces
operationId: deleteTrace
parameters:
- name: uuid
Expand All @@ -542,13 +624,17 @@ paths:
application/json: {}
/traces:
get:
tags:
- Traces
operationId: getTraces
responses:
default:
description: default response
content:
application/json: {}
post:
tags:
- Traces
operationId: putTrace
requestBody:
content:
Expand All @@ -562,6 +648,8 @@ paths:
application/json: {}
/xml/{name}:
delete:
tags:
- XML
operationId: deleteXml
parameters:
- name: name
Expand All @@ -576,13 +664,17 @@ paths:
'*/*': {}
/xml:
get:
tags:
- XML
operationId: getXml
responses:
default:
description: default response
content:
application/json: {}
put:
tags:
- XML
operationId: putXml
requestBody:
content:
Expand All @@ -598,6 +690,8 @@ paths:
content:
'*/*': {}
post:
tags:
- XML
operationId: postXml
requestBody:
content:
Expand Down Expand Up @@ -642,14 +736,14 @@ components:
properties:
expression:
type: string
tags:
type: integer
format: int32
name:
type: string
id:
type: integer
format: int64
tags:
type: integer
format: int32
startTime:
type: integer
format: int64
Expand Down

0 comments on commit 51cd9e1

Please sign in to comment.