Reputation: 754
how can I use post method in retrofit without argument in android,
@FormUrlEncoded
@POST("/attendanceJson.aspx")
void atendance(Callback<Atendance> callback);
Upvotes: 1
Views: 111
Reputation: 1723
@POST("Common/GetPanelCounts")
Observable<CountPanelDTO> getPanelCounts();
Observable<CountPanelDTO> listObservable = mApiService.getPanelCounts();
subscribe(listObservable, dto -> view.setNotificationPanel(dto), new Consumer<Throwable>()
{
@Override
public void accept(Throwable throwable) throws Exception {
view.setNotificationPanel(null);
}
});
Upvotes: 1