Skip to content

Commit

Permalink
BED 4970 (#960)
Browse files Browse the repository at this point in the history
* Renamed "search_query" to "query" on the /api/v2/graph-search endpoint. This matches what the code expects.

Changed "start_node" and "end_node" to string type on the /api/v2/graphs/shortest-path endpoint. This matches what the code expects.

* Check in updated openapi.json file after running just gen-spec

* Removed "Finding" parameter from the /api/v2/domains/{domain_id}/details endpoint.
Updated openapi.json file using just gen-spec
  • Loading branch information
AD7ZJ authored Nov 18, 2024
1 parent b974d84 commit fa4cf8c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 23 deletions.
16 changes: 3 additions & 13 deletions packages/go/openapi/doc/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -4152,7 +4152,7 @@
],
"parameters": [
{
"name": "search_query",
"name": "query",
"description": "Search query",
"in": "query",
"required": true,
Expand Down Expand Up @@ -4232,8 +4232,7 @@
"in": "query",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
"type": "string"
}
},
{
Expand All @@ -4242,8 +4241,7 @@
"in": "query",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
"type": "string"
}
},
{
Expand Down Expand Up @@ -12459,14 +12457,6 @@
"$ref": "#/components/schemas/api.params.predicate.filter.string"
}
},
{
"name": "Finding",
"deprecated": true,
"in": "query",
"schema": {
"$ref": "#/components/schemas/api.params.predicate.filter.string"
}
},
{
"name": "domain_sid",
"in": "query",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,6 @@ get:
in: query
schema:
$ref: './../schemas/api.params.predicate.filter.string.yaml'
- name: Finding
deprecated: true
in: query
schema:
$ref: './../schemas/api.params.predicate.filter.string.yaml'
- name: domain_sid
in: query
schema:
Expand Down
2 changes: 1 addition & 1 deletion packages/go/openapi/src/paths/graph.graph-search.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ get:
- Community
- Enterprise
parameters:
- name: search_query
- name: query
description: Search query
in: query
required: true
Expand Down
6 changes: 2 additions & 4 deletions packages/go/openapi/src/paths/graph.graphs.shortest-path.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,13 @@ get:
in: query
required: true
schema:
type: integer
format: int32
type: string
- name: end_node
description: The end node objectId
in: query
required: true
schema:
type: integer
format: int32
type: string
- name: relationship_kinds
in: query
schema:
Expand Down

0 comments on commit fa4cf8c

Please sign in to comment.