Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #8593 from EOSIO/docs/swagger-test_control-2.0.x
Browse files Browse the repository at this point in the history
test_control_api_plugin swagger file - 2.0
  • Loading branch information
lparisc authored Mar 5, 2020
2 parents e6b1ca8 + ee50b18 commit b79d3d2
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions plugins/test_control_api_plugin/test_control.swagger.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
openapi: 3.0.0
info:
title: Test Control API
version: 1.0.0
license:
name: MIT
url: https://opensource.org/licenses/MIT
contact:
url: https://eos.io
tags:
- name: eosio
servers:
- url: '{protocol}://{host}:{port}/v1/'
variables:
protocol:
enum:
- http
- https
default: http
host:
default: localhost
port:
default: "8080"
components:
schemas: {}
paths:
/test_control/kill_node_or_producer:
post:
tags:
- TestControl
summary: kill_node_or_producer
description: Kills node or producer
operationId: kill_node_or_producer
parameters: []
requestBody:
content:
application/json:
schema:
type: object
required:
- params
properties:
params:
type: object
properties:
producer:
$ref: 'https://eosio.github.io/schemata/v2.0/oas/Name.yaml'
where_in_sequence:
type: integer
based_on_lib:
type: integer
responses:
'200':
description: OK
content:
application/json:
schema:
description: Returns Nothing

0 comments on commit b79d3d2

Please sign in to comment.