Skip to content

Commit 526b869

Browse files
authored
Merge pull request #46 from numary/feature/num-38
Update http.yml
2 parents 4d91766 + 028831a commit 526b869

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

spec/http.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ openapi: 3.0.0
22

33
info:
44
title: Numary Ledger API
5-
version: 1.0.0-alpha
5+
version: 1.0-beta
66

77
servers:
88
- url: http://localhost:3068
@@ -72,7 +72,7 @@ paths:
7272
schema:
7373
type: object
7474

75-
/accounts:
75+
/{ledger}/accounts:
7676
get:
7777
summary: List accounts
7878
responses:
@@ -85,6 +85,18 @@ paths:
8585
items:
8686
$ref: "#/components/schemas/account"
8787

88+
/{ledger}/stats:
89+
get:
90+
summary: Stats accounts
91+
responses:
92+
200:
93+
description: The stats for account
94+
content:
95+
application/json:
96+
schema:
97+
type: array
98+
items:
99+
$ref: "#/components/schemas/stats"
88100
/{ledger}/accounts/{reference}:
89101
get:
90102
summary: Get an account by its fully-qualified reference

0 commit comments

Comments
 (0)