전체 글 (76) 썸네일형 리스트형 [TIL] JWT 인증 API 문서 서버 API_URL : https://moneyfulpublicpolicy.co.kr 회원가입 Request URL PATH → /register Method → POST JSON { "id": "유저 아이디", "password": "유저 비밀번호", "nickname": "유저 닉네임" } Response { "message": "회원가입 완료", "success": true } 로그인 아이디와 비밀번호가 DB에 있는 회원정보와 일치하면 accessToken, userId, avatar, nickname 총 4가지 유저정보를 응답 Request URL PATH → /login Method → POST JSON { "id":"유저 아이디", "password": "유저 비밀번호" } Res.. [TIL] Axios 설치/기본 - Axios란? http를 이용해서 서버와 통신하기 위해 사용하는 패키지 - Axios 설치 npm i axios yarn add axios (1) Axios GET get은 서버의 데이터를 조회할 때 사용 axios.get('https://api.example.com/data', { timeout: 5000 // 5초 후에 요청이 타임아웃됨 }) https://axios-http.com/kr/docs/req_config [공식문서] 요청 Config | Axios Docs 요청 Config 다음은 요청을 만드는 데 사용할 수 있는 config 옵션들 입니다. 오직 url만 필수입니다. method를 지정하지 않으면 GET방식이 기본값 입니다. { url: '/user', method: 'get', b.. [TIL] 프로젝트를 하다가 처음 들어보는 단어들이 많아서 찾아보다가 알게된 것들을 정리해놓아야 겠다는 생각이 들었다. import ReactDOM from "react-dom/client"; import { Provider } from "react-redux"; import { persistStore } from "redux-persist"; import { PersistGate } from "redux-persist/integration/react"; const persistor = persistStore(store); const root = ReactDOM.createRoot(document.getElementById("root")); root.render( // ... 생략 ... ); 웹에서 사용자의 행동.. 이전 1 ··· 5 6 7 8 9 10 11 ··· 26 다음