Skip to content

Commit

Permalink
fix: correct endpoint path for fetching proposal by ID
Browse files Browse the repository at this point in the history
This commit fixes an incorrect endpoint path used for fetching a proposal by its ID.

The HTTP method
 was changed from POST to GET to align with the intended functionality of retrieving data.
  • Loading branch information
OkelloSam21 committed Aug 18, 2024
1 parent 47a3b44 commit d9cc593
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ interface KaziHubApi {
suspend fun getJobCategoryById(@Path("category_id") id: Int): CategoryResponse

// Jobs
@POST("jobs/create")
@POST("/jobs/create")
suspend fun createJob(@Body job: CreateJobRequest): CreateJobsResponse

@GET("jobs/list")
Expand Down Expand Up @@ -191,7 +191,7 @@ interface KaziHubApi {
@Body proposal: ProposalRequest
): CreateProposalResponse

@POST("/proposals/{proposal_id}")
@GET("/proposals/{proposal_id}")
suspend fun getProposalById(
@Path("proposal_id") proposalId: Int,
): ProposalResponse
Expand Down

0 comments on commit d9cc593

Please sign in to comment.