diff --git a/testops-api/v1/paths/environments.yaml b/testops-api/v1/paths/environments.yaml index 6ae0e73..cb0c838 100644 --- a/testops-api/v1/paths/environments.yaml +++ b/testops-api/v1/paths/environments.yaml @@ -6,6 +6,20 @@ get: This method allows to retrieve all environments stored in selected project. parameters: - $ref: '../parameters/Code.yaml' + - in: query + name: search + description: | + A search string. + Will return all environments with titles containing provided string. + schema: + type: string + - in: query + name: slug + schema: + type: string + description: | + A search string. + Will return all environments with slugs equal to provided string. - $ref: '../parameters/pagination/Limit.yaml' - $ref: '../parameters/pagination/Offset.yaml' responses: diff --git a/testops-api/v1/schemas/Run.create.yaml b/testops-api/v1/schemas/Run.create.yaml index 063af4f..b0746c2 100644 --- a/testops-api/v1/schemas/Run.create.yaml +++ b/testops-api/v1/schemas/Run.create.yaml @@ -19,6 +19,9 @@ properties: type: integer format: int64 minimum: 1 + environment_slug: + type: string + maxLength: 255 milestone_id: type: integer format: int64