/REST_API

Krishagni REST API Assignment

Primary LanguagePython

REST APi

23th January 2024 : Assingment

Step 1: Write a program to login and print basic user details: user name, login name, etc and logout Step 2: Update the program to get the list of participants in a CP and print some basic details to a CSV

  1. Checkin in your personal Github and mail me.
  2. Refer to API wiki pages
  3. Take KW's help when needed
  4. Read about basics of REST API and all error codes etc.

What does an API do ?

API is a communication medium between two programs or systems. The client is the user/customer (who sends the request), the medium is the API, and the server is the backend (where the request is accepted and a response is provided).

  • The client initiates the requests via the APIs URI (Uniform Resource Identifier) —> A URI is used to distinguish one resource from another. The strings of characters incorporated in a URI serve as identifiers, such as a scheme name and a file path. Every URL is an URI but every URI is not an URL
  • The API makes a call to the server after receiving the request
  • Then the server sends the response back to the API with the information
  • Finally, the API transfers the data to the client

How is an API Different From a Web Application?

A web application is a network-based resource responsible for completing a single task, v/s APIs as a tool is used to allow one system to leverage the functionalities of another without needing to understand the internal workings of that system.