I tried my request in both way. which is
@PUT("api/check-ticket/{reg_id}/{gate}/") Observable<AppAllowTicketResponse> checkRealTimeTicketStatus( @Path("reg_id") String ticket_id, @Path("gate") int gate_id ); And ..
@FormUrlEncoded @PUT("api/check-ticket/{reg_id}/{gate}/") Observable<AppAllowTicketResponse> checkRealTimeTicketStatus( @Field("reg_id") String ticket_id, @Field("gate") int gate_id ); but its always ends by giving me error. HTTP 404 not found. I have other @GET and @POST request which is working. call is happening from here ..
mTicketCheckService.checkRealTimeTicketStatus(ticket_id, (gate_id+ValueConstants.GATE_ADD_VALUE)) .subscribeOn(mNewThread) .observeOn(mMainThread) .subscribe(new Observer<AppAllowTicketResponse>() { @Override public void onCompleted() { } @Override public void onError(Throwable e) { e.printStackTrace(); Log.e("api error response: ", e.getLocalizedMessage()); } @Override public void onNext(AppAllowTicketResponse appAllowTicketResponse) { } }); I have no idea why this is happening. I have searched stackoverflow for similar problem but didn't get any solution.