시행착오 썸네일형 리스트형 [하톡시그널] Retrofit으로 서버와 연결하기 처음으로 안드로이드에서 서버와 연결하는 과정 이슈 1. http와 통신하기 현재 서버가 http로 올라가 있었는데, private val moshi = Moshi .Builder() .add(KotlinJsonAdapterFactory()) .build() private val retrofit = Retrofit .Builder() .addConverterFactory(MoshiConverterFactory.create(moshi)) .baseUrl(BASE_URL) .build() interface MatchingApiService{ @POST("/room/entrance") suspend fun StartMatch(@Body body: MatchingRequest): Response } object .. 더보기 이전 1 다음