Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update can funding summary openapi spec #2963

Merged
merged 4 commits into from
Oct 23, 2024

Conversation

maiyerlee
Copy link
Contributor

@maiyerlee maiyerlee commented Oct 22, 2024

What changed

This PR updates the openapi.yml file to reflect changes to the CAN Funding Summary (/api/v1/can-funding-summary/{can_id}) endpoint for supporting CAN Summary Information cards.

  • Removed can_id path parameter
  • Added can_ids query parameter: Required list of CAN Ids
  • Added active_period query parameter: Optional list of active periods
  • Added transfer query parameter: Optional list of method of transfer types
  • Added portfolio query parameter: Optional list of portfolios
  • Added fy_budget query parameter: Optional list of exactly two values (min and max)
  • Added new_funding to the response object: String value of the spending amount

Issue

#2961

How to test

The openapi.yml file has been successfully generated and is free of any syntax issues.

Screenshots

N/A

Definition of Done Checklist

  • OESA: Code refactored for clarity
  • OESA: Dependency rules followed
  • Automated unit tests updated and passed
  • Automated integration tests updated and passed
  • Automated quality tests updated and passed
  • Automated load tests updated and passed
  • Automated a11y tests updated and passed
  • Automated security tests updated and passed
  • 90%+ Code coverage achieved
  • Form validations updated

Links

N/A

@maiyerlee maiyerlee self-assigned this Oct 22, 2024
schema:
type: array
items:
type: string
Copy link
Contributor Author

@maiyerlee maiyerlee Oct 22, 2024

Choose a reason for hiding this comment

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

I'm unsure if the portfolio parameter here should be the portfolio ID, name, or abbreviation. 🤔

Copy link
Contributor

@fpigeonjr fpigeonjr Oct 22, 2024

Choose a reason for hiding this comment

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

think the abbreviation or id would be more slug-friendly:
image

@maiyerlee maiyerlee marked this pull request as ready for review October 22, 2024 19:50
Copy link
Contributor

@fpigeonjr fpigeonjr left a comment

Choose a reason for hiding this comment

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

🧡 Looks great @maiyerlee
image

@maiyerlee maiyerlee merged commit a1393f0 into main Oct 23, 2024
40 checks passed
@maiyerlee maiyerlee deleted the 2961-update-openapi-spec-for-can-funding-summary branch October 23, 2024 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants