GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing threadbuilder.wordpress.com — Openapi Code Generator Openapi Code Generatornest.js 프로젝트시 Swagger 를 사용한다. 스웨거 사용시 api 스펙 문서를 생성할수 있는데 해당 문서로 Client Code ( feat axios )를 생성 할수 있다. 클라이언트 코드생성을 간단히 하는 방법을 정리 해본다. 1.OpenAPI Generator 설치 설치하는 방법은 여러가지로 제공 한다. homebrew 설치 npm 설치 .. 등등. 지금은 npm 기반으로 설치 하겠다. ( 사전에 JDK 설치가 필요함 )
2. Generator Config 파일 작성 root 경로에 openapitools.json 파일을 생성후 아래 코드 작성.
3. Script 등록 및 Generator 실행
script 실행
결과물 ![]() 생성된 파일 구조
Like Loading... Related
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
|
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |