알아서들 쓰십셔들
-
[CS Study] fetch / axios && API란 무엇일까?네트워크/CS Study 2023. 6. 18. 13:16
API 란??? 하나의 프로그램에서 다른 프로그램으로 데이터를 주고 받기 위한 방식으로 상당히 추상적인 개념이기 때문에 잘 짚고 가야하는 부분이다. 식당 메뉴판을 상상하면서 API를 이해해 보자 (김치찌개를 원하면 아줌마에게 김치찌개 달라고 해야지 김치찌개인데 참치 넣고 햄넣고 사리까지 듬뿍 넣어서 주세요 하면 안된다;; ===) 작성방식 어떤 요청방식이 들어가야 한다 ( get, post 와 같은 것이 요청방식임) 어떤 자료를 요청할 지 적어야 한다 (대표적으로 URL) 추가정보는 넣든말든 (유저정보 기타등등 URL에서 ? 뒤에 들어가는 내용임) 웹에서만 작동하는 개념이 아니기 때문에 윈도우 데이터 관리 등등 걍 데이터를 주고받는 곳에서는 다 쓰이는 용어이기 떄문에 잘 안고가즈아... Fetch / A..