Skip to content

Commit

Permalink
feat: url path 수정 #52
Browse files Browse the repository at this point in the history
  • Loading branch information
bamin0422 committed Jun 26, 2024
1 parent c2dd18e commit 056655c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ import retrofit2.http.Body
import retrofit2.http.GET

interface AuthApi {
@GET("/api/v1/auth/refresh")
@GET("/auth/refresh")
fun getTokenByRefreshToken(@Body data: SignUpRequest) : DataResult<RefreshResponse>
}
Original file line number Diff line number Diff line change
@@ -1,29 +1,25 @@
package com.owori.android.data.api.comment

import com.google.android.gms.common.internal.safeparcel.SafeParcelable.Param
import com.owori.android.data.model.auth.RefreshResponse
import com.owori.android.data.model.comment.CommentEditRequest
import com.owori.android.data.model.comment.CommentPostRequest
import com.owori.android.data.model.comment.CommentResponse
import com.owori.android.data.model.member.SignUpRequest
import com.owori.android.module.DataResult
import retrofit2.http.Body
import retrofit2.http.DELETE
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Path

interface CommentApi {

// 댓글 작성
@POST("/api/v1/comments")
@POST("/comments")
fun postComment(@Body data: CommentPostRequest) : DataResult<CommentResponse>

// 댓글 수정
@POST("/api/v1/comments/update")
@POST("/comments/update")
fun editComment(@Body data: CommentEditRequest) : DataResult<CommentResponse>

// 댓글 삭제
@DELETE("/api/v1/comments/{commentId}")
@DELETE("/comments/{commentId}")
fun deleteComment(@Path(value = "commentId") id: Int) : DataResult<CommentResponse>
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import retrofit2.http.Body
import retrofit2.http.POST

interface MemberApi {
@POST("/api/v1/members/kakao")
@POST("/members/kakao")
fun kakaoLogin(@Body data: SignUpRequest) : DataResult<SignUpResponse>

@POST("/api/v1/members/google")
@POST("/members/google")
fun googleLogin(@Body data: SignUpRequest) : DataResult<SignUpResponse>

@POST("/api/v1/members/apple")
@POST("/members/apple")
fun appleLogin(@Body data: SignUpRequest) : DataResult<SignUpResponse>
}

0 comments on commit 056655c

Please sign in to comment.