Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: reuse parameters to make the openapi file smaller (#2382)
* reuse parameters to make the openapi file smaller * remove files * fix tests * use runnableResourceSortBy in getResources
- Loading branch information
1 parent
fc49f09
commit 861a204
Showing
8 changed files
with
284 additions
and
534 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
version: 3.0.0 | ||
components: | ||
parameters: | ||
|
||
# Test parameters | ||
testId: | ||
in: path | ||
name: testId | ||
required: true | ||
description: id of the test | ||
schema: | ||
type: string | ||
|
||
# versioning and runs | ||
runId: | ||
in: path | ||
name: runId | ||
required: true | ||
description: id of the run | ||
schema: | ||
type: integer | ||
|
||
version: | ||
in: path | ||
name: version | ||
required: true | ||
description: version of the test | ||
schema: | ||
type: integer | ||
|
||
# transaction | ||
transactionId: | ||
in: path | ||
name: transactionId | ||
required: true | ||
description: id of the transaction | ||
schema: | ||
type: string | ||
|
||
# Query parameters | ||
take: | ||
in: query | ||
name: take | ||
description: "indicates how many resources can be returned by each page" | ||
schema: | ||
type: integer | ||
default: 20 | ||
|
||
skip: | ||
in: query | ||
name: skip | ||
description: "indicates how many resources will be skipped when paginating" | ||
schema: | ||
type: integer | ||
default: 0 | ||
|
||
query: | ||
in: query | ||
name: query | ||
description: "query to search resources" | ||
schema: | ||
type: string | ||
|
||
runnableResourceSortBy: | ||
in: query | ||
name: sortBy | ||
description: "indicates the sort field for the resources" | ||
schema: | ||
type: string | ||
enum: [created, name, last_run] | ||
|
||
sortBy: | ||
in: query | ||
name: sortBy | ||
description: "indicates the sort field for the resources" | ||
schema: | ||
type: string | ||
enum: [created, name] | ||
|
||
switchableResourceSortBy: | ||
in: query | ||
name: sortBy | ||
description: "indicates the sort field for the resources" | ||
schema: | ||
type: string | ||
enum: [type, enabled] | ||
|
||
sortDirection: | ||
in: query | ||
name: sortDirection | ||
description: "indicates the sort direction for the resources" | ||
schema: | ||
type: string | ||
enum: [asc, desc] | ||
|
||
# resource ids | ||
configId: | ||
in: path | ||
name: configId | ||
schema: | ||
type: string | ||
required: true | ||
description: "ID of the configuration resource used on Tracetest. It should be set as 'current'" | ||
|
||
demoId: | ||
in: path | ||
name: demoId | ||
required: true | ||
description: "ID of a demonstration used on Tracetest as quick start examples" | ||
schema: | ||
type: string | ||
|
||
pollingProfileId: | ||
in: path | ||
name: pollingProfileId | ||
required: true | ||
description: "ID of a polling profile used on Tracetest to configure how to fetch traces in a test. It should be set as 'current'" | ||
schema: | ||
type: string | ||
|
||
dataStoreId: | ||
in: path | ||
name: dataStoreId | ||
required: true | ||
description: "ID of a datastore used on Tracetest to configure how to fetch traces in a test" | ||
schema: | ||
type: string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.