본문 바로가기

반응형

API

(8)
Nest.js Swagger UI , Prisma 사용하기 Prisma를 이용한 Mysql 연결 및 REST API 작성 방법 npm install --save @nestjs/swaggerhttps://docs.nestjs.com/openapi/introduction#installation Documentation | NestJS - A progressive Node.js frameworkNest is a framework for building efficient, scalable Node.js server-side applications. It uses progressive JavaScript, is built with TypeScript and combines elements of OOP (Object Oriented Programming), FP (Functional Programming), and FRP (Function..
Nest.js 는 Node.js 의 프레임워크 오케이 ? RestAPI 만들어 보자 https://nestjs.com/ NestJS - A progressive Node.js framework NestJS is a framework for building efficient, scalable Node.js web applications. It uses modern JavaScript, is built with TypeScript and combines elements of OOP (Object Oriented Programming), FP (Functional Programming), and FRP (Functional Reactive Progr nestjs.com 우선 설치 할 것들이 여러가지가 있는데 구글 검색 창에 insomnia rest를 검색해보자 공짜 버전으로 회원가입을 진행해..
React 웹페이지에서 네이버 지도 API 사용하는 방법 https://zeakd.github.io/react-naver-maps/guides/quickstart/ https://navermaps.github.io/maps.js.ncp/docs/index.html React Naver Maps Quickstart Application 루트에 NaverMaps Provider를 제공해야합니다. 사용하시는 프레임워크에 맞춰 를 감싸주세요. import { NaverMapsProvider } from 'react-naver-maps'; function App() { return ( ) } import { Container as MapDiv, N zeakd.github.io 해당 부분을 많이 참고하면 react 에 쉽게 적용 가능하십니다 우선 저는 Header 에 링..
[JAVA]대한민국 법정동 코드 reg-code-api 조회 API 사용방법 알려드리오 https://juso.dev/docs/reg-code-api/#headline-4 대한민국 법정동 코드 조회 API대한민국 법정동 코드 조회 API 법정동 목록 API는 GCP의 Cloud Run 환경 위에서 동작합니다. 기본적으로 gRPC 서버와 ESPv2 기반 프록시 서버가 함께 동작합니다. API 주소는 grpc-proxy-server-mkvo6j4wsq-du.a.run.juso.dev공공데이터를 사용허가를 받고 데이터를 정렬 및 선택적으로 보기 위해서는 아무래도 위치 기반 데이터가 많기 때문에 대한민국 내 지역 별로 묶어 보고 싶을 때가 많다 공공데이터 json xml 값 중 zcode zscode 라는걸 확인 할 수 있는데 해당 코드가 법정동 코드이다 해당 코드를 데이터 베이스에 집어 넣어서 ..
Uncaught (in promise) TypeError: Failed to fetch 이런 실수 내가 합니다. 수 많은 다양한 이유로부터 해당 에러가 발생하겠지만 이번에는 어이 없는 나의 실수를 기록해보자고 한다. 몇일을 api에서 전송한 값을 못 받길래 이유가 무엇일까 고민하다가 chat gpt에 문의를 하였다. 에러 메시지는 `updatePost` 함수 안에서 `fetch`를 호출할 때 발생하는 것 같습니다. `fetch`가 성공적으로 API를 호출하지 못하고 있어서 에러가 발생한 것 같습니다. 에러의 원인을 찾아보기 위해 다음과 같은 질문들을 생각해볼 수 있습니다. 1. `fetch` 호출에서 API 주소(`http://localhost:4000/post`)가 올바른가요? 2. 호출하는 API의 HTTP 메서드는 `PUT`인가요? 3. `updatePost` 함수가 호출될 때, 해당 게시물의 ID 값은 `i..
Node.js 백엔드에서 메일 전송하기 (with Nodemailer & Gmail) https://www.npmjs.com/package/nodemailer nodemailer Easy as cake e-mail sending from your Node.js applications. Latest version: 6.9.1, last published: 10 days ago. Start using nodemailer in your project by running `npm i nodemailer`. There are 5765 other projects in the npm registry using nodemailer. www.npmjs.com npm i nodemailer https://nodemailer.com/about/ Nodemailer :: Nodemailer Nodemailer..
네이버 오픈 API 사용 하는 방법 : 검색 기능 편 네이버에서 제공해주고 있는 API 는 엄청나게 다양하다. 그 중에서 검색 > 지역 API 사용하는 방법을 알려주고자 한다. https://developers.naver.com/docs/serviceapi/search/local/local.md 검색 > 지역 - Search API 검색 > 지역 지역 검색 개요 개요 검색 API와 지역 검색 개요 검색 API는 네이버 검색 결과를 뉴스, 백과사전, 블로그, 쇼핑, 영화, 웹 문서, 전문정보, 지식iN, 책, 카페글 등 분야별로 볼 수 있는 API developers.naver.com 해당 공식 문서를 보면 나오는데 상세히 자세히 읽어보아야 알 수 있다. 검색 API 특징 검색 API는 비로그인 방식 오픈 API입니다. 비로그인 방식 오픈 API는 네이버 오..
Node.js로 Test api 만드는 쉬운 방법 Postman https://www.youtube.com/watch?v=pN49Lnlyuao https://github.com/typicode/json-server GitHub - typicode/json-server: Get a full fake REST API with zero coding in less than 30 seconds (seriously) Get a full fake REST API with zero coding in less than 30 seconds (seriously) - GitHub - typicode/json-server: Get a full fake REST API with zero coding in less than 30 seconds (seriously) github.com -> Ge..

반응형