Customizing mapping to HTTP with annotations
●
choosing HTTP method:
@GET
,
@POST
,
@PUT
,
@PATCH
,
@DELETE
●
customizing paths:
@GET("api/user")
●
choosing parameter flavors and names:
@Path
,
@Header("X-Header")
,
@Query
,
@Cookie
,
@Body
●
choosing body format:
@JsonBody
,
@FormBody
,
@CustomBody