Skip to content

[Feat]: API to get all appilications #244

@ormig

Description

@ormig

Is your feature request related to a problem? Please describe

No response

Describe the solution you'd like

https://github.com/Netcracker/qubership-envgene/blob/docs/envgene-ui/docs/analysis/colly-applications-api.md

? GET /api/v1/environments/{environmentId}/applications

Return list of all applications for particular environment and namespace

Parameters:

  • environmentId (path)
  • namespaceName (query)

Response:

- `<application-name-1>`
- `<application-name-N>`

Details:
read file /environments/<cluster-name>/<env-name>/Inventory/solution-descriptor/sd.yaml|yml

  • if file is not exist => error in logs
  • check yaml file first if not exist then check yml
  • if there are no SD.applications or SD.applications[].version or SD.applications[].deployPostfix (at least in one application) => error in logs and full SD shouldn't put in cache
  • if deployPostfix is not found in namespaceName => ignore element SD.applications during cache
  • if for namespaceName there is no applications in deployPostfix => 404

Describe alternatives you've considered

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request
    No fields configured for Feature.

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions