ApiImplicitParams not working as expected
See original GitHub issue@ApiOperation("Create a new MyEntity")
@ApiImplicitParams({
@ApiImplicitParam(name = "myEntity", dataType = "MyEntity", paramType = "body", required = true)
})
@ApiResponses(value = { @ApiResponse(code = 200, message = "Success", response = MyEntity.class),
@ApiResponse(code = 401, message = "Unauthorized"),
@ApiResponse(code = 500, message = "Internal Server Error"),
@ApiResponse(code = 400, message = "Bad Request"),
@ApiResponse(code = 404, message = "Not Found") })
@PostMapping
public ResponseEntity<MyEntity> createMyEntity(@RequestBody Map<String, Object> request)
_Originally posted by @timothy-mugayi in https://github.com/springfox/springfox/issues/2195#issuecomment-433822289_
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Swagger datatype not generating docs - Stack Overflow
According to this GitHub issue on Swagger core project, if you add the annotation @ApiImplicitParam should resolve your problem.
Read more >ApiImplicitParam (swagger-annotations 1.6.2 API) - Javadoc.io
Represents a single parameter in an API Operation. While ApiParam is bound to a JAX-RS parameter, method or field, this allows you to...
Read more >ApiImplicitParam (swagger-annotations 1.3.10 API)
Represents a single parameter in an API Operation. While ApiParam is bound to a JAX-RS parameter, method or field, this allows you to...
Read more >Error in using swagger annotations for non-primitive query ...
I'm not sure how easy it would be to overcome this due to type erasure, but we'll see. ... The @ApiImplicitParam doesn't seem...
Read more >ApiImplicitParam not showing File param on swagger UI
I am creating swagger document using annotations in springboot application, all the APIs params are working instead of file param, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@dilipkrish please change response = Campaign.class to MyEntity.class typo
I’m using ApiImplicitParams with a header parameters. Not working either.
There’s no header parameter.