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 #8590 from EOSIO/docs/swagger-db_size-2.0.x
Browse files Browse the repository at this point in the history
db_size_api_plugin swagger file - 2.0
  • Loading branch information
lparisc authored Mar 5, 2020
2 parents 37e8a18 + be88ec3 commit 0223a03
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 1 deletion.
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

0 comments on commit 0223a03

Please sign in to comment.