amplify-category-api icon indicating copy to clipboard operation
amplify-category-api copied to clipboard

To add Appsync custom response header to resolver templates.

Open susmithapatchigolla opened this issue 2 years ago • 3 comments

Describe the feature you'd like to request

To be able to add Appsync custom response header to resolver templates from a single file/updating at single place. So all the resolvers will be updated with code to add custom response headers

Describe the solution you'd like

As Appsync supports custom response headers. Implementing the same using Amplify CLI needs overriding all the resolver templates.

Similar to custom-roles.json, having a file like "custom-response-headers.json" to mention all the required headers. If possible a format to specify headers based on query type like create/update/read/delete.

Describe alternatives you've considered

Currently was able to achieve with resolver overriding feature

Additional context

No response

Is this something that you'd be interested in working on?

  • [] 👋 I may be able to implement this feature request

Would this feature include a breaking change?

  • [] ⚠️ This feature might incur a breaking change

susmithapatchigolla avatar Mar 22 '23 18:03 susmithapatchigolla