Skip to content

DELETE endpoints cannot have a body #42

@gofabian

Description

@gofabian

The HTTP method "DELETE" is allowed to have a body. But rest.vertx does not allow.

Exception in thread "vert.x-eventloop-thread-0" java.lang.IllegalArgumentException: one.two.three.MyController.delete(Payload arg0) - Missing argument annotation (@PathParam, @QueryParam, @FormParam, @HeaderParam, @CookieParam or @Context) for: arg0!
	at com.zandero.utils.Assert.isFalse(Assert.java:38)
	at com.zandero.utils.Assert.isTrue(Assert.java:51)
	at com.zandero.rest.AnnotationProcessor.get(AnnotationProcessor.java:65)
	at com.zandero.rest.RestRouter.register(RestRouter.java:124)
	at com.zandero.rest.RestBuilder.getRouter(RestBuilder.java:406)
	at com.zandero.rest.RestBuilder.build(RestBuilder.java:451)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions