Skip to content
Discussion options

You must be logged in to vote

Ok, in that case, defining a dispatcher is required. But you can easily define it in your OpenAPI file using our extension, just adding a x-microcks-operation attribute like below:

openapi: 3.0.3
info:
  title: Test
  version: 3.0.0
  description: Test App
paths:
  /health:
    get:
      x-microcks-operation:
        dispatcher: JS
        dispatcherRules: 'return "health_ok"'
     [...]

If you're not using the latest 1.13.0 version, consider replacing the JS dispatcher above with SCRIPT. However, this won't work if you're using a native-compiled version of Microcks. JS with 1.13.0 will work everywhere though.

If you don't want to have this extension appear in your OpenAPI file, you ca…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@KoldoCanellas
Comment options

@lbroudoux
Comment options

Answer selected by KoldoCanellas
@KoldoCanellas
Comment options

@KoldoCanellas
Comment options

@lbroudoux
Comment options

@lbroudoux
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment