본문 바로가기
Web

[Web] API와 EndPoint

by clolee 2022. 10. 20.

API

Application Programming Interface

소프트웨어 프로그램이 다른 소프트웨어 프로그램으로 데이터를 전송할 수 있도록 하는 일련의 규칙.

한 application이 다른 application으로 부터 서비스를 요청하는 방법.

API는 interface. (한 항목이 다른 항목과 상호작용 하는)

 

API call (API request)

API 호출은 API의 사용을 트리거하는 API로 전달되는 메시지

API 호출이 동작하려면 API 요구 사항에 따른 형식이 지정되어야 함.

API 요구사항 = schema

 

 

EndPoint

An endpoint is the end of a communications channel.

API endpoint는 API 응답이 시작되는 곳.

API call은 응답을 얻기 위해 API 서버가 담당하는 특정 URL로 가야 한다.

URL은 API 엔드포인트를 나타냄

 

REST API

 

REST(REpresentational State Transfer)는 웹 서비스를 위한 아키텍처 스타일

REST API는 REST 아키텍처를 사용하여 구축된 모든 API

 

 

참고 :

https://www.cloudflare.com/learning/security/api/what-is-an-api/

https://www.cloudflare.com/learning/security/api/what-is-api-endpoint/

https://blog.naver.com/ghdalswl77/222401162545

 

 

 

댓글