23 views
Skip to first unread message

Karthik V A

unread,
May 12, 2023, 12:52:02 AM5/12/23
to django...@googlegroups.com
Hello friends, Is there any inbuilt function in django for API. Without using REST framework and request.

Vishesh Mangla

unread,
May 12, 2023, 12:55:30 AM5/12/23
to django...@googlegroups.com
Use request module to make a request from django if you meant that otherwise your question is unclear

On Fri, 12 May, 2023, 10:21 Karthik V A, <karthik...@gmail.com> wrote:
Hello friends, Is there any inbuilt function in django for API. Without using REST framework and request.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHjRVdSmDv28sXqf1FkPLXBooUKWpOGtSR6LZFxLVuU8w3c_PA%40mail.gmail.com.

Dev Femi Badmus

unread,
May 12, 2023, 5:18:02 AM5/12/23
to django...@googlegroups.com
Yes! But the framework is cool with many functions to make work easier also it’s light and easy to understand 

Ryan Nowakowski

unread,
May 12, 2023, 11:03:45 AM5/12/23
to django...@googlegroups.com
You can implement a class based view that extends View:

https://docs.djangoproject.com/en/4.2/ref/class-based-views/base/#django.views.generic.base.View

Implement one method per http method you want to handle. Example:

def get(self, ...

...and return the response encoded as JSON. You'll probably want to do some things like check the accept request header and set the response content type.


5PM

unread,
May 18, 2023, 11:46:30 AM5/18/23
to django...@googlegroups.com
No

On Fri, May 12, 2023, 10:36 AM Karthik V A <karthik...@gmail.com> wrote:
Hello friends, Is there any inbuilt function in django for API. Without using REST framework and request.

--
Reply all
Reply to author
Forward
0 new messages