From the course: Shared Economy for iOS Development

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

AppSync schema

AppSync schema - iOS Tutorial

From the course: Shared Economy for iOS Development

Start my 1-month free trial

AppSync schema

- [Instructor] Now that we have the ability to create user accounts, let's create the ability for those users to create data on the server. So, to do that we need an API, and to do that we're going to use AppSync, which, of course, we're going to configure with Amplify. So, let's go back to the terminal. So, in the terminal I'm going to add the API category using Amplify, add api, and it's going to ask us, what kind of API we want to create, and a few other questions that have easy answers. It's going to ask us, what type of API, GraphQL or REST? We want to use GraphQL. That uses AppSync. RESTful API uses the API Gateway. We provide a API name, mowerapp is fine. Hit return, and we're going to make sure that all of our users, who want to store data on the database, are logged in. So, we're going to use the Amazon Cognito User Pool. The API key, that allows you to store your API key in your configuration file, and use it in your code, but that's not very secure, and if it changes, your…

Contents