aws-amplify / amplify-swift

A declarative library for application development using cloud services.
Apache License 2.0
452 stars 196 forks source link

Support for REST API in Gen 2 applications #3895

Open nuckcrews opened 1 week ago

nuckcrews commented 1 week ago

Is your feature request related to a problem? Please describe.

It seems as though support was dropped for REST APIs in the new Gen2 backends when working with mobile apps. When using amplify_outputs.json to configure my application, I get misconfigurations and crashes (I know the format is correct because it works for my Next.js app).

Describe the solution you'd like

Please add support for REST APIs like you have for other platforms like web.

Example: Next.js support

Describe alternatives you've considered

I am considering building my own support for this by building a custom dispatching layer. However, this is keeping me from migrating to Gen 2 and pushing me to move away from Amplify all together.

Is the feature request related to any of the existing Amplify categories?

API

Additional context

No response

github-actions[bot] commented 1 week ago

This has been identified as a feature request. If this feature is important to you, we strongly encourage you to give a 👍 reaction on the request. This helps us prioritize new features most important to you. Thank you!

thisisabhash commented 1 week ago

Thank you for submitting the feature request - our team will post updates here.

thisisabhash commented 3 days ago

Hello, If you are using Gen 1, you may still continue to use it for REST API use cases.

For Gen2, you can still deploy your APIGateway backend following steps here: https://docs.amplify.aws/javascript/build-a-backend/add-aws-services/rest-api/set-up-rest-api/ However, native client libraries currently don't support it. You may use https://github.com/awslabs/aws-sdk-swift directly for REST API use cases