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

db_size_api_plugin swagger file #8827

Merged
merged 1 commit into from
Mar 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ var/lib/node_*
*.iws
.DS_Store

!*swagger*
!*.swagger.*
60 changes: 60 additions & 0 deletions plugins/db_size_api_plugin/db_size.swagger.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
openapi: 3.0.0
info:
title: DB Size API
version: 1.0.0
license:
name: MIT
url: https://opensource.org/licenses/MIT
contact:
url: https://eos.io
servers:
- url: '{protocol}://{host}:{port}/v1/'
variables:
protocol:
enum:
- http
- https
default: http
host:
default: localhost
port:
default: "8080"
components:
schemas: {}
paths:
/db_size/get:
post:
summary: get
description: Retrieves database stats
operationId: get
parameters: []
requestBody:
content:
application/json:
schema:
type: object
properties: {}
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
description: Defines the database stats
properties:
free_bytes:
type: integer
used_bytes:
type: integer
size:
type: integer
indices:
type: array
items:
type: object
properties:
index:
type: string
row_count:
type: integer