Mock request

Simple Demo

Api Config

name: pixiu
description: pixiu sample
resources:
  - path: '/api/v1/test-dubbo/mock'
    type: restful
    description: mock
    methods:
      - httpVerb: GET
        onAir: true
        mock: true
        timeout: 100s
        inboundRequest:
          requestType: http

Request

curl localhost:8888/api/v1/test-dubbo/mock -X GET 

Response

{
    "message": "mock success"
}

TODO

We plan use can config custom result in the future. Not only api config way, but also create a match rule.

Previous