Skip to content

Instantly share code, notes, and snippets.

@aliabidzaidi
Created March 24, 2024 09:05
Show Gist options
  • Save aliabidzaidi/88c04ff5d9c5f0f69c8ac9f4991209f2 to your computer and use it in GitHub Desktop.
Save aliabidzaidi/88c04ff5d9c5f0f69c8ac9f4991209f2 to your computer and use it in GitHub Desktop.

REST API (Link)

Introduction

RESTful API is an interface that two computer systems use to exchange information securely over the internet.
Example Image

Components of a Restful API

  • Unique resource locator (URL)
  • Methods
    • GET
    • POST
    • PUT
    • DELETE
  • Data
  • Request headers
    • Path
    • Query
    • Cookies
  • Response body & Status codes

HTTP URL explained
Example Image Example Image

HTTP Status codes
Example Image

Postman UI explained Download

Postman is a popular API client that makes it easy for developers to create, share, test and document APIs. This can be done by allowing users to create and save simple and complex HTTP/s request

  1. Http Method
  2. URL
  3. Send Request button
  4. Status code
  5. Response Body
  6. Data & Request headers (not labeled, but its the section below URL)

Example Image


Creating a REST API

Python frameworks for building REST API

Building a REST API using Python Flask

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment