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 - 2.0 #8590

Merged
merged 4 commits into from
Mar 5, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
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: 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.*
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