Model Blogpost has 4 attributes. There are id, title, description, created_at. Id is the primary key. title is the title of the post. ** description** is the description of the post. created_at is the time when the post is created. There is one extra attribute, many_post (that not stored in the DB) which means the order number of that post (
- HTTP Request : GET
Return the list of posts whichwill return the list of posts which contains all 5 attributes (including many_post)
- HTTP Request : POST
POST will create a new post, you will have to put the data consisting of title and description only because the id and created_at will be auto generated by Django.