Blog API with Django Rest Framework 7 of 33 - Update & Destroy Delete API View

preview_player
Показать описание
Blog API with Django Rest Framework 7 of 33 - Update & Destroy Delete API View

** Blog API with Django Rest Framework ** is a project to build a RESTful API service for the blog we created in Advancing the Blog and Try Django 1.9.

RESTful API services allow our applications to connect with other applications using JSON-formatted data. An strong API can enhance our applications ability to provide value to other services and end users. This type of API is very common in modern web application development.

Generally the topics will include:
- Django Project Setup
- Class Based Views (& some Function Based Views)
- Models, Model Forms, Forms, Form Validation
- Integrate Bootstrap front-end framework.
- Django Registration Redux for Authentication/Registration
- And More

We are Coding For Entrepreneurs [TeamCFE] and have built an entire library of content to help you master Django and other web technologies to launch real projects faster. Enroll today for as low as $20/month.

What Technology you'll learn in the Build a Django 1.8 Blog series:
-- Bootstrap (version 3.3): a powerful front-end framework used by thousands of sites around the world. Bootstrap makes it easier to have a responsive web application so it looks awesome on any mobile device and any desktop computer.

All of our tutorials have a simple goal in mind: get you building something real and quickly.
Рекомендации по теме
Комментарии
Автор

Delete button, destroyview, alphabetical sortig classes. I liked it.

MohammadEtemaddar
Автор

Just an FYI to all. The way he sets up the API end points is not considered RESTful. RESTful API would not allow verbs/actions in the URL. That is what HTTP methods do. The API endpoint should usually be a noun that is plural representing objects of that type. So in the example of Posts, his endpoint should be
This would represent all posts objects in the database.
Then if he wants to request a detail post or specific post, usually you throw an ID at the end of the url so...
This will return the post with an id of 1, or in the video's case, he would put the slug at the end.
Now to manipulate a specific post you would send an HTTP request with a specific method. So let's say you want to delete the post with the ID of 1. You would send a DELETE HTTP request to...
To update a post with an ID of 2, then you would send a PUT/PATCH HTTP request to...
Here is good article on RESTful API design that explains what proper RESTful API is.

xon
Автор

What's the difference between PUT and PATCH? When should I use one or another?

betoborda
Автор

does anyone know how we can make the update request using android volley

himanshupanth
Автор

I tried to follow it, but I don't see the HTML form at the bottom part. Is there any way to enable it?

wongwinghangwindham
Автор

I followed every thing but neither update form and nor delete option is coming.

ankurranjan
Автор

Can't delete or update. It gives "detail": "CSRF Failed: CSRF token missing or incorrect." error. How to resolve this? TIA.

kamranhossain
Автор

how can i put default current date in date field in django rest api date field

sachincse