API(3)
-
Frontend - React 에서 env 파일에 key 저장하는 방법
To use environment variables in your JavaScript/JSX files, you can leverage a tool like dotenv to load the environment variables from a .env file. Here's a step-by-step guide: 1. Install dotenv: Run the following command in your project's root directory to install dotenv as a dependency. npm install dotenv 2. Create a .env file: Create a file named .env in your project's root directory and add t..
2023.11.15 -
What is API (Application programming interface)?
API is the acronym for application programming interface — a software intermediary that allows two applications to talk to each other. APIs are an accessible way to extract and share data within and across organizations. APIs are all around us. https://www.mulesoft.com/resources/api/what-is-an-api#:~:text=API%20is%20the%20acronym%20for,APIs%20are%20all%20around%20us. What is an API? (Application..
2023.10.22 -
[Django] postman 이용하여 수정하기 API 만들기
Postman을 이용하여 API 를 만들고 있다. 다음은 API로 수정하는 방법이다. 1. articles list 에서 게시글을 쓴 유저의 이메일을 확인 (또는 db로 확인) 2. login 에서 "access" 키 복사해서 environment - Initial value, Current value 에 저장 3. put 으로 설정한 후 주소창에 수정하려 하는 article number 입력 4. 내용 수정 *request 실행전 environment 설정 되어 있는지 꼭 확인*
2023.09.25