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

feat: add function endpoints [EXT-5995] #2513

Draft
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

michaelpineirocontentful
Copy link

@michaelpineirocontentful michaelpineirocontentful commented Jan 16, 2025

Summary

Add function endpoints to be used through plain client

  • Updated plain-client.ts to include new function operations: get, getMany, getManyForEnvironment
  • Created function.ts
  • Enhanced common-types to support new function operations
  • Updated REST/endpoints/function.ts to handle new function endpoints

Motivation and Context

We want to have access to basic Functions API's through CMA.

Checklist (check all before merging)

  • Both unit and integration tests are passing
  • There are no breaking changes
  • Changes are reflected in the documentation

When adding a new method:

  • The new method is exported through the default and plain CMA client
  • All new public types are exported from ./lib/export-types.ts
  • Added a unit test for the new method
  • Added an integration test for the new method note: integration/e2e lives in app-hosting-monitoring
  • The new method is added to the documentation

lib/common-types.ts Outdated Show resolved Hide resolved
@michaelpineirocontentful michaelpineirocontentful changed the title feat: add function endpoints feat: add function endpoints [EXT-5995] Jan 17, 2025
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