Apache Dubbo MockRules API

The MockRules API from Apache Dubbo — 2 operation(s) for mockrules.

Operations 3

POST /api/{env}/mock/rule Apache Dubbo Create or Update MockRule
DELETE /api/{env}/mock/rule Apache Dubbo Delete MockRule by Id
GET /api/{env}/mock/rule/list Apache Dubbo Get MockRules by Page

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/apache-dubbo-mockrules-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

apache-dubbo-mockrules-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: This is a dubbo-admin swagger ui server.
  title: Dubbo-Admin ConditionRule Mock Rules API
  contact: {}
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  version: '1.0'
servers:
- url: https://127.0.0.1:38080/
tags:
- name: MockRules
paths:
  /api/{env}/mock/rule:
    post:
      description: Create or update MockRule
      tags:
      - MockRules
      summary: Apache Dubbo Create or Update MockRule
      parameters:
      - description: environment
        name: env
        in: path
        schema:
          type: string
          default: dev
        required: true
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                type: boolean
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/model.HTTPError'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/model.HTTPError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/model.MockRule'
        description: MockRule
        required: true
    delete:
      description: Delete MockRule by id
      tags:
      - MockRules
      summary: Apache Dubbo Delete MockRule by Id
      parameters:
      - description: environment
        name: env
        in: path
        schema:
          type: string
          default: dev
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: boolean
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/model.HTTPError'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/model.HTTPError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/model.MockRule'
        description: MockRule
        required: true
  /api/{env}/mock/rule/list:
    get:
      description: Get MockRules by page
      tags:
      - MockRules
      summary: Apache Dubbo Get MockRules by Page
      parameters:
      - description: environment
        name: env
        in: path
        schema:
          type: string
          default: dev
        required: true
      - description: filter condition
        name: filter
        in: query
        schema:
          type: string
      - description: page offset
        name: offset
        in: query
        schema:
          type: integer
      - description: page limit
        name: limit
        in: query
        schema:
          type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/model.ListMockRulesByPage'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/model.HTTPError'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/model.HTTPError'
components:
  schemas:
    model.HTTPError:
      type: object
      properties:
        error:
          description: error message
          type: string
    model.MockRule:
      type: object
      properties:
        enable:
          type: boolean
        id:
          type: integer
        methodName:
          type: string
        rule:
          type: string
        serviceName:
          type: string
    model.ListMockRulesByPage:
      type: object
      properties:
        content:
          type: array
          items:
            $ref: '#/components/schemas/model.MockRule'
        total:
          type: integer