Retrofit: Make a POST request without parameters

Created on 7 Dec 2016  路  1Comment  路  Source: square/retrofit

Hi,
is it possible to make a POST request without parameters? like

@POST("")
@Headers({ "Content-Type: application/xml; charset=Utf-8"})
Call postRequest(@Body Request body);

Most helpful comment

You can use @POST(".") to send a request to the base URL.

>All comments

You can use @POST(".") to send a request to the base URL.

Was this page helpful?
0 / 5 - 0 ratings