Skip to content

SPOTCON-37764 Updated OpenAPI documentation for Ocean Rightsizing Recommendation History API.#837

Open
cshivaraj-patil wants to merge 3 commits into
masterfrom
SPOTCON-37764-add-workload-recommendation-history-api-to-external-open-api-documentation
Open

SPOTCON-37764 Updated OpenAPI documentation for Ocean Rightsizing Recommendation History API.#837
cshivaraj-patil wants to merge 3 commits into
masterfrom
SPOTCON-37764-add-workload-recommendation-history-api-to-external-open-api-documentation

Conversation

@cshivaraj-patil

Copy link
Copy Markdown
Collaborator

Jira ticket-
https://flexera.atlassian.net/browse/SPOTCON-37764

why
The workload recommendation history API was implemented but was not exposed in the external OpenAPI documentation. Documentation support was required so external consumers can discover and use the new endpoint.

What
Added external OpenAPI documentation for workload recommendation history endpoint.

Added endpoint definition:
GET /ocean/{oceanId}/rightSizing/namespaces/{namespace}/{workloadType}/{workloadName}/recommendation-history

Added request parameter documentation:

oceanId
namespace
workloadType
workloadName
accountId
fromDate
toDate
containerNames

Added response schema and response wrapper definitions.
Added request/response examples for recommendation history retrieval.
Aligned parameter requirements and examples with API implementation.

Checklist

-[x] I added a Jira ticket link
-[x] I filled in the test plan
-[x] I executed the tests and filled in the test results
-[x] My code follows the style guidelines of this project
-[x] I have performed a self-review of my own code
-[x] I have validated all the requirements in the Jira task were answered

How to test

Run:
yarn validate
Run:
yarn serve

Navigate to:
Ocean Automatic Rightsizing → Get Ocean Rightsizing Recommendation History

Validate:
Endpoint appears in documentation
Parameters are rendered correctly
Response schema is visible
Example request/response are displayed properly

test result
Validated endpoint appears under Ocean Automatic Rightsizing - passed.
Screenshot 2026-06-29 at 4 04 42 PM

…ommendation History API

Updated OpenAPI documentation for Ocean Rightsizing Recommendation History API. Added endpoint definition, request parameters, response schema, examples, and aligned query parameter documentation with API behavior.
@cshivaraj-patil cshivaraj-patil requested a review from a team as a code owner June 29, 2026 10:55
@cshivaraj-patil cshivaraj-patil self-assigned this Jun 29, 2026
@cshivaraj-patil cshivaraj-patil force-pushed the SPOTCON-37764-add-workload-recommendation-history-api-to-external-open-api-documentation branch from 97bacb9 to 99778a5 Compare July 6, 2026 11:27

@Ranjithdr21 Ranjithdr21 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the schema to match history api and also include limit field in that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants