I am using spring boot 1.5, Swagger client api(not rest template) for making calls to source.
I am using the PATCH approach for partial updates, and had no problem creating a server side annotation and implementation for this.
However, when I try to write client code for testing, it fails.
Invalid HTTP method: PATCH; nested exception is java.net.ProtocolException: Invalid HTTP method: PATCH
Interestingly, when our applications are deployed in docker, It works but in local it fails with above error.
We have the same problem with integration tests
Not sure if I am missing on something? Is it the problem with spring boot?
Its spring boot microservices.
We use codegen (group: 'io.swagger', name: 'swagger-codegen-cli', version: '2.3.0-SNAPSHOT', classifier: 'HATEOAS') { transitive = false }
in source to generate client api.
Import api client in consumer service like
compile(group: 'com.xy.xy', name: 'product-service', version: '0.1.1', classifier: 'clientApi')
To make a patch call we use
productControllerApi.updateProductAssociationUsingPATCH(id, unitIds);