Rest api instead of submissions in Django

What is the main advantage of using REST api instead of views in Django

- is it ok to mix in REST api and Views (REST api in one application and Views in another application)?

Or do we need to write REST api for all applications? instead of mixing REST and Views

+4
source share
1 answer

I assume you are asking about the benefits of a library like tastypie or django-rest-framework

I never used tastypie, but for the REST api, the django-rest-framework provides a lot of the box, which greatly speeds up the development of these api.

django-rest-framework , :

  • ( , )
  • API
  • - API ( !).

django-rest-framework:

, REST:

  • API - - .
  • , OAuth1a OAuth2, .
  • , ORM non-ORM.
  • - .
  • , .

, , django-rest-api , apis . , django-rest-api .


, . django , html , API

+3

All Articles