Skip to content

add api generator#13

Open
11t518s wants to merge 1 commit into
mainfrom
feat/swagger-generator
Open

add api generator#13
11t518s wants to merge 1 commit into
mainfrom
feat/swagger-generator

Conversation

@11t518s

@11t518s 11t518s commented Apr 12, 2024

Copy link
Copy Markdown
Contributor

이거는 이렇게 쓰겠다는건 아니고 대충 한번 쓱 swagger.json으로 말아본거

좋은건 github library로 만드는게 좋아보이긴함!

@11t518s 11t518s requested a review from yoon-junseo April 12, 2024 15:28

@yoon-junseo yoon-junseo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이건 trpc 안쓰게 되면 쓰면 되겠다 👍

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

�api generator가 얘도 같이 만드는건가 ??

import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
import globalAxios from 'axios';

export const BASE_PATH = "http://localhost:3000".replace(/\/+$/, "");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이건 실제 swagger 기준으로 사용하게 되면 알아서 바뀌는거겠지 ??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants