Web APIs
Using a Web API is a great way to ensure our front-end application has access to the data and functionality it needs to read and write data.
The expectations of a Web API are:
- It is accessible over the web.
- It leverages HTTP protocol and HTTP verbs such as
GET
,POST
,PUT
,DELETE
, and others to communicate intentions.
What language and framework should you pick?
In this chapter, we already decided we will use Python and Flask. But why? What criteria do we use to pick a language and framework?
You can use any language and framework you want, but here are some criteria to consider:
- What languages and frameworks do you know?
- Are they easy to learn?
- Do they have a large community?
- Are they free and open source?
- How often are they updated?
- Do they have good documentation?
- Do they have good tooling?
These are just some of the criteria to consider.
The reason for picking Python and Flask...