amplify-cli icon indicating copy to clipboard operation
amplify-cli copied to clipboard

Add Restapi and graph api both

Open vjindalaurea opened this issue 7 years ago • 4 comments

Currently we add either rest api or graph ql api using amplify add api , but in our project we need graphql and rest api both .

How can we have both rest and graphql apis in same project ?

vjindalaurea avatar Apr 03 '19 12:04 vjindalaurea

You can add both just by starting with a GraphQL API, and then later doing another "amplify add api" and selecting a REST API.

Or are you referring to doing the REST API on a Table created from the GraphQL API?

wizawuza avatar Apr 03 '19 12:04 wizawuza

@vjindalaurea Please let me know if you're still having this issue. Closing this issue for now.

kaustavghosh06 avatar Apr 08 '19 18:04 kaustavghosh06

@kaustavghosh06 , I am facing this problem :

  • I first added a graphql api using amplify add api , it created some dynamo table
  • then i tried to add rest api by again using amplify add api ,but it says : "There are no DynamoDB resources configured in your project currently" . I want to use same dynamodb tables with graphql and rest apis

vjindalaurea avatar Apr 09 '19 05:04 vjindalaurea

This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels for those types of questions.

github-actions[bot] avatar May 27 '21 12:05 github-actions[bot]