Skip to content

Commit

Permalink
chore: update to use environment_id instead of domain_id
Browse files Browse the repository at this point in the history
  • Loading branch information
computator committed Nov 22, 2024
1 parent 532c591 commit 964a360
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 22 deletions.
20 changes: 10 additions & 10 deletions packages/go/openapi/doc/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -12172,14 +12172,14 @@
}
}
},
"/api/v2/domains/{domain_id}/finding-trends": {
"/api/v2/domains/{environment_id}/finding-trends": {
"parameters": [
{
"$ref": "#/components/parameters/header.prefer"
},
{
"name": "domain_id",
"description": "Domain ID",
"name": "environment_id",
"description": "Environment ID",
"in": "path",
"required": true,
"schema": {
Expand All @@ -12188,9 +12188,9 @@
}
],
"get": {
"operationId": "FindingTrendsForDomain",
"operationId": "FindingTrendsForEnvironment",
"summary": "List finding trends",
"description": "Lists findings and their changes in between two dates for a domain",
"description": "Lists findings and their changes in between two dates for an environment",
"tags": [
"Attack Paths",
"Enterprise"
Expand Down Expand Up @@ -12236,7 +12236,7 @@
"items": {
"type": "object",
"properties": {
"domain_sid": {
"environment_id": {
"type": "string"
},
"finding": {
Expand Down Expand Up @@ -13200,14 +13200,14 @@
}
}
},
"/api/v2/domains/{domain_id}/posture-history/{data_type}": {
"/api/v2/domains/{environment_id}/posture-history/{data_type}": {
"parameters": [
{
"$ref": "#/components/parameters/header.prefer"
},
{
"name": "domain_id",
"description": "Domain ID",
"name": "environment_id",
"description": "Environment ID",
"in": "path",
"required": true,
"schema": {
Expand All @@ -13225,7 +13225,7 @@
}
],
"get": {
"operationId": "PostureHistoryForDomain",
"operationId": "PostureHistoryForEnvironment",
"summary": "Get Posture History",
"description": "Gets posture data count changes over a time period",
"tags": [
Expand Down
8 changes: 4 additions & 4 deletions packages/go/openapi/src/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -642,8 +642,8 @@ paths:
# attack paths
/api/v2/domains/{domain_id}/attack-path-findings:
$ref: './paths/attack-paths.domains.id.attack-path-findings.yaml'
/api/v2/domains/{domain_id}/finding-trends:
$ref: './paths/attack-paths.domains.id.finding-trends.yaml'
/api/v2/domains/{environment_id}/finding-trends:
$ref: './paths/attack-paths.environment.id.finding-trends.yaml'
/api/v2/attack-path-types:
$ref: './paths/attack-paths.attack-path-types.yaml'
/api/v2/attack-paths:
Expand All @@ -660,8 +660,8 @@ paths:
# risk posture
/api/v2/posture-stats:
$ref: './paths/risk-posture.posture-stats.yaml'
/api/v2/domains/{domain_id}/posture-history/{data_type}:
$ref: './paths/risk-posture.domains.id.posture-history.type.yaml'
/api/v2/domains/{environment_id}/posture-history/{data_type}:
$ref: './paths/risk-posture.environment.id.posture-history.type.yaml'

# meta entity
/api/v2/meta/{object_id}:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@

parameters:
- $ref: './../parameters/header.prefer.yaml'
- name: domain_id
description: Domain ID
- name: environment_id
description: Environment ID
in: path
required: true
schema:
type: string
get:
operationId: FindingTrendsForDomain
operationId: FindingTrendsForEnvironment
summary: List finding trends
description: Lists findings and their changes in between two dates for a domain
description: Lists findings and their changes in between two dates for an environment
tags:
- Attack Paths
- Enterprise
Expand Down Expand Up @@ -67,7 +67,7 @@ get:
items:
type: object
properties:
domain_sid:
environment_id:
type: string
finding:
type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

parameters:
- $ref: './../parameters/header.prefer.yaml'
- name: domain_id
description: Domain ID
- name: environment_id
description: Environment ID
in: path
required: true
schema:
Expand All @@ -29,7 +29,7 @@ parameters:
schema:
$ref: '#/components/schemas/data_type'
get:
operationId: PostureHistoryForDomain
operationId: PostureHistoryForEnvironment
summary: Get Posture History
description: Gets posture data count changes over a time period
tags:
Expand Down

0 comments on commit 964a360

Please sign in to comment.