This is my feign method
@RequestMapping(method = RequestMethod.DELETE, value = "/spaces/{spaceId}")
void deleteSpace(SpaceId spaceId);
and SpaceId field is
public class SpaceId implements Serializable {
@JsonValue
String id;
}
What I want is that when I call deleteSpace(new SpaceId("1"))
, it calls DELETE to endpoint DELETE /spaces/1
. Is it doable with FeignClient?