Let's Run Jinyeah

REST API 본문

Programming/Web

REST API

jinyeah 2021. 11. 19. 18:05

REST Architecture

software architecture style that defines a pattern for client and server communications over a network

REST APIs and Web Services

REST web service

  • web service that adheres to REST architecture contstraints
  • expose their data to the ouside world through an API

REST APIs

  • provide access to web service data through public web URLs
  • listen for HTTP methods to know which operations to perform on the web service's resources
    HTTP methods Description
    GET Retrieve an existing resource
    POST Create a new resource
    PUT Update an existing resource
    PATCH Partially update an existing resource
    DELETE Delete a resource
  •  recieves and processes an HTTP request, it will return HTTP response (HTTP status code)
    Code range Cateogry
    2xx Successful operation
    3xx Redirection
    4xx Client error (request 문제, data 없음)
    5xx Sever error
  • API Endpoints - URLs that a REST API exposes
    HTTP method API endpoint Description
    GET /customers Get a list of customers
    GET /customers/<customer_id> Get a single customer
    POST /customers Create a new customer

 

참고

https://realpython.com/api-integration-in-python/#rest-architecture

'Programming > Web' 카테고리의 다른 글

[FastAPI] Build APIs  (0) 2021.11.19
Build REST APIs  (0) 2021.11.19
[Error]CSS style 변경 후 웹브라우저에 반영이 안되는 경우  (0) 2021.01.15
웹 서버란?  (0) 2021.01.07
[Error]XAMPP Apache - Error Apache shutdown unexpectedly  (0) 2021.01.07
Comments