Validator Api Operation Finding logic should also match operations on consumed/produced media type

Issue #91 new
Bashar Allabadi created an issue

the logic of ApiOperationResolver.java#findApiOperation only considers the path and the HttpMethod

but I have two paths using the same method but produce different content type

GET /me/stuff, produce : {application/json} response here is a list of stuff

GET /me/stuff, produces {application/vnd.stuff.summary+json} response here is stuff resources summary

the resolver takes the first operation which ends up as the incorrect match in my case

I'm using version 1.2.1 with spring mvc

Comments (3)

  1. James Navin

    Thanks for raising this. This is loosely related to Issue #83 (findApiOperation behavior). I will spend some time improving it this week.

    Cheers.

  2. Log in to comment