Thursday, October 23, 2014

Re: Django REST Framework

The way I always describe APIs (in a broad, general sense) is:

Image internet service "Twotter" had posts, and each post had a date.

If they had a date API you might be able to get all of the posts for a
month like:

for month in months:
return "https://twotter.org/%s" %month

and then you could see all the twotter posts for the month "month".

Of course, it could be any variable on any model - gender or length or
a boolean or whatever

Cheers
L.


On 23 October 2014 19:20, Max Nathaniel Ho <maxhowl86@gmail.com> wrote:
> Hi Andreas,
>
> Thank you. Will read up!
>
> On Thu, Oct 23, 2014 at 4:18 PM, Andreas Kuhne <andreas.kuhne@suitopia.com>
> wrote:
>>
>> Hi Max,
>>
>> I think you should really just google it a bit and read about it.
>> http://en.wikipedia.org/wiki/Representational_state_transfer is a good
>> start.
>>
>> A simplified version is that a REST API allows you to get information
>> about your database models in a structured and predictive way. HOW the API
>> should behave is also documented.
>>
>> You wouldn't use it for presenting information on the web, but rather for
>> connecting to your backend via javascript or connecting 2 different projects
>> over the Internet.
>>
>> Regards,
>>
>> Andréas
>>
>> 2014-10-23 10:14 GMT+02:00 Max Nathaniel Ho <maxhowl86@gmail.com>:
>>>
>>> Hi Russell,
>>>
>>> Thanks for your reply. As I am fairly new to django and programming in
>>> general, do you mind sharing what REST APIs actually do? Thank you!
>>>
>>> On Thu, Oct 23, 2014 at 11:51 AM, Russell Keith-Magee
>>> <russell@keith-magee.com> wrote:
>>>>
>>>> Hi Max,
>>>>
>>>> Django ReST Framework, as the name suggests, is a framework for building
>>>> ReST APIs in Django.
>>>>
>>>> It's not officially part of the Django framework, but it's creator and
>>>> principle maintainer - Tom Christie - is a member of the Django core team.
>>>> Tom recently held a Kickstarter to fund v3 of the framework; that
>>>> Kickstarter was extraordinarily successful due to the support of the
>>>> community.
>>>>
>>>> If you need to write a ReSTful API for your Django app, it's well worth
>>>> your time to take a look at it.
>>>>
>>>> Yours,
>>>> Russ Magee %-)
>>>>
>>>> On Thu, Oct 23, 2014 at 11:14 AM, Max Nathaniel Ho <maxhowl86@gmail.com>
>>>> wrote:
>>>>>
>>>>> Hi all,
>>>>>
>>>>> I just came across Django REST Framework. From what I have read up so
>>>>> far, its a Web API framework.
>>>>>
>>>>> What does it do and what is the difference between this and the regular
>>>>> Django Web Framework?
>>>>>
>>>>> Thanks!
>>>>>
>>>>> --
>>>>> 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+unsubscribe@googlegroups.com.
>>>>> To post to this group, send email to django-users@googlegroups.com.
>>>>> Visit this group at http://groups.google.com/group/django-users.
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/django-users/94c429f5-6028-4e17-9839-4e5c76f99a6d%40googlegroups.com.
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>>
>>>> --
>>>> You received this message because you are subscribed to a topic in the
>>>> Google Groups "Django users" group.
>>>> To unsubscribe from this topic, visit
>>>> https://groups.google.com/d/topic/django-users/z9FJVsVnK4o/unsubscribe.
>>>> To unsubscribe from this group and all its topics, send an email to
>>>> django-users+unsubscribe@googlegroups.com.
>>>> To post to this group, send email to django-users@googlegroups.com.
>>>> Visit this group at http://groups.google.com/group/django-users.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/CAJxq84_zzgwEUOM1tw%2B558LrVWjoN_ef__OBwqDUiSjdESTOMQ%40mail.gmail.com.
>>>>
>>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>>
>>>
>>>
>>> --
>>> Regards,
>>> Max Nathaniel Ho.
>>>
>>> --
>>> 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+unsubscribe@googlegroups.com.
>>> To post to this group, send email to django-users@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAMognGGKu-D576%3DXYYh2yBCEnaEny-fjE%2BNOcjT8%2BZ%3DRVwa_Tw%40mail.gmail.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Django users" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/django-users/z9FJVsVnK4o/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> django-users+unsubscribe@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CALXYUb%3D0c1R_%3DsDKSuzDTKOb%2BHKio0DfgaK6PsRGT%3DYLFSvUTQ%40mail.gmail.com.
>>
>> For more options, visit https://groups.google.com/d/optout.
>
>
>
>
> --
> Regards,
> Max Nathaniel Ho.
>
> --
> 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+unsubscribe@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAMognGGib0aQ190%2BYTLDRx7Zfmt6PRUpyiHHGuj8ofQ6ctG10Q%40mail.gmail.com.
>
> For more options, visit https://groups.google.com/d/optout.



--
You have to be really clever to come up with a genuinely dangerous
thought. I am disheartened that people can be clever enough to do that
and not clever enough to do the obvious thing and KEEP THEIR IDIOT
MOUTHS SHUT about it, because it is much more important to sound
intelligent when talking to your friends.
This post was STUPID.
-----------------------------------------------------------------------------------------------------------
The Most Terrifying Thought Experiment of All Time
http://www.slate.com/articles/technology/bitwise/2014/07/roko_s_basilisk_the_most_terrifying_thought_experiment_of_all_time.html

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAGBeqiPkJmY92PdOjWQNZa3sbekiC9xmXRxc7D6Ze6Az02-8xQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment