
上QQ阅读APP看书,第一时间看更新
API model
The following is a conceptual list of APIs that will be required to service the app:
- For registering a respondent
- For creating a poll
- For getting a list of all of the polls
- For submitting a poll
- For deleting a poll
- For retrieving a poll
- For Database Migrations
- For Fixing Database Migrations
We will create a Lambda function for each of these endpoints in the upcoming chapters. First, let's take a look at the design of these APIs.
For each API, we will take a look at the following:
- HTTP method
- Relative URL
- Headers (if any)
- Sample request body
- Responses
The preceding details will be encapsulated in the fragments of the Swagger 2.0 documentation of the API. The full copy of the API documentation can be found in the repository of the code for this book on Github.