Skip to content

Mock POST or PUT with empty response #682

Answered by lbroudoux
dontfreakout asked this question in Q&A
Discussion options

You must be logged in to vote

Hey! Not sure if we're currently able to do that...
I think it has nothing to do with the dispatcher but with the way we gather example fragments to build a request/response pair.

Have you tried to add - at least - an empty response example with user has a key? Something like:

responses:
  '201':
    content:
       application/json:
          examples:
            user:
              value: 

Maybe it could do the trick to allow Microcks to assemble a valid request/response pair?

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@dontfreakout
Comment options

@felipe-alves-moraes
Comment options

@lbroudoux
Comment options

Answer selected by dontfreakout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
3 participants