API & JSON

When you use an application on your mobile phone, the application connects to the Internet and sends data to a server. The server then retrieves that data, interprets it, performs the necessary actions and sends it back to your phone. The application then interprets that data and presents you with the information you wanted in a readable way. This is what an API is - all of this happens via API.

To explain this better, let us take a familiar example.

Imagine you’re sitting at a table in a restaurant with a menu of choices to order from. The kitchen is the part of the “system” that will prepare your order. What is missing is the critical link to communicate your order to the kitchen and deliver your food back to your table. That’s where the waiter or API comes in. The waiter is the messenger – or API – that takes your request or order and tells the kitchen – the system – what to do. Then the waiter delivers the response back to you; in this case, it is the food.

JSON - (JavaScript Object Notation) is a way to store information in an organized, easy-to-access manner. It gives us a human-readable collection of data that we can access in a really logical manner.

For example:


REST API & Django Rest Framework

REST (Representational state transfer) which essentially refers to a style of web architecture that has many underlying characteristics and governs the behavior of clients and servers. It lets you interact with Parse from anything that can send an HTTP request. See Parse REST Definition for examples of this.

Traditionally, Django is known to many developers as a MVC Web Framework, but it can also be used to build a backend, which in this case is an API Django REST framework is a powerful and flexible toolkit for building Web API.


Sprint 4

It's one of the difficult sprint for you, cause you have to cover two tutorials. The first one is very useful and described very well and I hope that you will get some experience from that.


Assignment

  1. Django Rest Framework official tutorial.

Expectation

  1. You now how to DRF application and understand the flow
  2. Have known:
    1. API & REST API
    2. Models
    3. Migrataion
    4. Serializers
    5. Routers

results matching ""

    No results matching ""