Use CLASS BASED APIVIEW
Refer django rest framework APIVIEW
USE POST METHOD

On Sat, Nov 2, 2019, 9:29 PM Sajan s <[email protected]> wrote:

> I want create Web API like below.
>
> 1) receive  JSON request
> 2) internal process and insert into postgresql
> 3) return JSON response
>
> Can you pls share any Url which I can refer
>
> On Saturday, November 2, 2019 at 5:50:48 AM UTC-4, Anil Yadav wrote:
>>
>> what type of service you want to create
>>
>> On Sat, Nov 2, 2019 at 3:20 PM Anil Yadav <[email protected]> wrote:
>>
>>> yes it possible
>>>
>>> On Sat, Nov 2, 2019 at 8:59 AM Sajan s <[email protected]> wrote:
>>>
>>>> Hey All,
>>>>
>>>> I am new to python and trying to create rest api using
>>>> "django-rest-framework".
>>>>
>>>> simple API ,
>>>>
>>>>    - no Auth
>>>>    - receive request
>>>>    - get data from mysql
>>>>    - internal process
>>>>    - return JSON response.
>>>>
>>>> Any one help me out?
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Django REST framework" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-rest-framework/8cd01caf-16c2-4684-ae4b-ffa8a5ef2160%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/django-rest-framework/8cd01caf-16c2-4684-ae4b-ffa8a5ef2160%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> --
> You received this message because you are subscribed to the Google Groups
> "Django REST framework" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-rest-framework/f619d056-7cd3-44c4-8112-5c7cf083631e%40googlegroups.com
> <https://groups.google.com/d/msgid/django-rest-framework/f619d056-7cd3-44c4-8112-5c7cf083631e%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-rest-framework/CABXY%3DaBYxTgfRE6EWwv3VnOv1OZhQJnNAo2EgOx7H6XiQ%3DjLsA%40mail.gmail.com.

Reply via email to