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

Api State Removal - backend #844

Merged

Conversation

MarekMichali
Copy link
Contributor

@MarekMichali MarekMichali commented Aug 23, 2024

Description

Always require sm_secret_namespace and sm_secret_name URL parameters for API calls. Add an interface to test API calls that require SMClient

Changes proposed in this pull request:

  • Remove states from backend
  • Adjust tests
  • Adjust UI for changes

Related issue(s)

See #442

@kyma-bot kyma-bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 23, 2024
@kyma-bot
Copy link
Contributor

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@kyma-bot kyma-bot added cla: yes Indicates the PR's author has signed the CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Aug 23, 2024
@MarekMichali MarekMichali force-pushed the api-central-secret branch 2 times, most recently from e871268 to 1a520c9 Compare August 26, 2024 11:42
@kyma-bot kyma-bot added the area/documentation Issues or PRs related to documentation label Aug 27, 2024
@MarekMichali MarekMichali changed the title Remove states from api Api State Removal - backend Aug 27, 2024
@MarekMichali MarekMichali marked this pull request as ready for review August 27, 2024 06:03
@MarekMichali MarekMichali requested a review from a team as a code owner August 27, 2024 06:03
@kyma-bot kyma-bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 27, 2024
Copy link
Member

@ralikio ralikio left a comment

Choose a reason for hiding this comment

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

Review remarks

router.HandleFunc("POST /api/service-bindings", a.CreateServiceBinding)
router.HandleFunc("DELETE /api/service-bindings/{id}", a.DeleteServiceBinding)
Copy link
Member

@ralikio ralikio Aug 27, 2024

Choose a reason for hiding this comment

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

Let's keep ids in the path.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reverted.

router.HandleFunc("GET /api/service-offerings/{id}", a.GetServiceOffering)
router.HandleFunc("GET /api/service-instances", a.ListServiceInstances)
router.HandleFunc("GET /api/service-instances/{id}", a.GetServiceInstance)
router.HandleFunc("GET /api/service-offerings", a.HandleGetServiceOffering)
Copy link
Member

Choose a reason for hiding this comment

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

Missing plural.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reverted to the ID's in the path so it's gone

@kyma-bot kyma-bot added the lgtm Looks good to me! label Aug 28, 2024
@MarekMichali MarekMichali merged commit c45c9a2 into kyma-project:sm-integration Aug 28, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/documentation Issues or PRs related to documentation cla: yes Indicates the PR's author has signed the CLA. lgtm Looks good to me! size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants