Welcome to Kickstartr. Assume we have a model called Project
that inherits from db.Model
and SerializerMixin
, a corresponding table called projects
, and a Flask application called app
. Your application also initializes an api
object from flask_restful
and has the appropriate Resource class(es) and HTTP methods for constructing a RESTful API.
For each of the five actions below, write out the corresponding:
- HTTP Verb and URL (ie
GET '/dogs'
) - corresponding CRUD action (ie
READ
) - corresponding view method on your resource (i.e.
def get(self):
) - corresponding SQLAlchemy query method(s) (ie.
.all()
)
- Displays all of the projects
- Displays information about one project
- Creates a new project based on given parameters
- Updates an existing project with given parameters
- Deletes an existing project
Build out the above as a full RESTful Flask API with a model, migration, routes, resource classes and view methods.