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

Commit

Permalink
update gitignore and add test_control swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
dskvr committed Feb 6, 2020
1 parent cabd775 commit ee50b18
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,5 @@ var/lib/node_*
.idea/
*.iws
.DS_Store

!*.swagger.*
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 ee50b18

Please sign in to comment.