C. Deploy the API
Now that we have created all of the routes for the Websocket API, we can deploy it. Deploying our API makes our changes available to the Alien Attack Application.
Deploy the API
- Once all the routes are created, select the dropdown menu Actions.
- Click Deploy API.
- For Deployment Stage select, [New Stage].
- For Stage Name enter,
- Select Deploy.
- You’ll see a page appear that has the WebSocket URL and Connection URL.
- Copy the WebSocket URL.