json-server 와 kong 연결 하기

푸르둥개·2022년 12월 5일

json-server 와 kong 연결 하기

JSON Server 란

  • Get a full fake REST API with zero coding in less than 30 seconds (seriously)
  • Created with <3 for front-end developers who need a quick back-end for prototyping and mocking.

Kong setup

  • Service 등록

    • Name : json-server-test
    • protocol : http
    • Host : 10.x.x.x (json-server 모듈의 Service ip )
    • Port : 80

  • Routes 등록

    • Name : json-server
    • Paths: /json-server

  • Methods : GET,POST,PUT,DELETE


TEST

[kong-api] / [routes] / [API ]
http://yourgatewayip/json-server/posts


TEST

  • Insomnia 활용

Header 정보 - kong/2.8.1

GET

POST ( & GET& DELETE )

profile
DevOps업무중, 개발팀과 운영팀이 알아두면 좋은 정보를 공유합니다.

0개의 댓글