mock server1 [Postman] 포스트맨으로 목 서버 구축하기 Postman 목 서버를 구축하여 사용해보자. 필요한 엔드포인트는 다음과 같이 정의하고 진행한다. 사용자 프로필 요청할 땐, 토큰이 필요하지만 인터셉터로 처리하기 때문에 아래 코드에서는 안보이는 점을 참고하자.@POST("api/v1/auth/signin")suspend fun login(@Body loginRequest: LoginRequest): LoginResponse@GET("api/v1/users/me")suspend fun getUserProfile(): UserProfileResponse... Postman에 접속해서(꼭 설치하지 않아도 웹에서 진행하면 된다.) WorkSpace에 들어왔다는 가정하에 진행한다. Postman: The World's Leading API Platform | S.. 2025. 10. 12. 이전 1 다음