English 中文(简体)
FastAPI - Rest Architecture
  • 时间:2024-11-03

FastAPI - REST Architecture


Previous Page Next Page  

RElational State Transfer (REST) is a software architectural style. REST defines how the architecture of a web apppcation should behave. It is a resource based architecture where everything that the REST server hosts, (a file, an image, or a row in a table of a database), is a resource, having many representations.

REST recommends certain architectural constraints.

    Uniform interface

    Statelessness

    Cpent-server

    Cacheabipty

    Layered system

    Code on demand

REST constraints has the following advantages −

    Scalabipty

    Simppcity

    Modifiabipty

    Repabipty

    Portabipty

    Visibipty

REST uses HTTP verbs or methods for the operation on the resources. The POST, GET, PUT and DELETE methods perform respectively CREATE, READ, UPDATE and DELETE operations respectively.

Advertisements