- Client - a role that requests
- Server - a role that responds/listens
- API - Application Programming Interface (how the server interacts with clients)
- Interface - a connection point / how things communicate
- Endpoint - a location on an API
- Request - asking for something
- Response - a reply to a request
- Method - a collection of steps / a way of doing something
app.run()
inside the scriptflask run
if the script is called app.pyflask --app [filename] run
if the script is called something elseexport
various bits of information to the terminal andflask run
Documentation is absolutely vital.
Route | Method | Response | Parameters |
---|---|---|---|
/ |
GET |
A nice message | |
/company |
GET |
A list of company information | country - filter by location |
/company |
POST |
Create a new company based on JSON data |