Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.

Commit

Permalink
feat: add general stats endpoint to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKohler committed Jul 9, 2021
1 parent b086df4 commit 374d1ea
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions server/swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,23 @@ paths:
description: "Success"
schema:
$ref: "#/definitions/SourceText"
/sentences/stats/general/{localeId}:
get:
summary: "Get general stats for a language"
description: ""
produces:
- "application/json"
parameters:
- in: "path"
name: "localeId"
type: "string"
description: "Locale ISO code to query for"
required: true
responses:
"200":
description: "Success"
schema:
$ref: "#/definitions/GeneralStats"
/sentences/text/{localeId}:
get:
summary: "Get sentences as list of text for a language"
Expand Down Expand Up @@ -155,3 +172,18 @@ definitions:
SourceText:
type: "string"
example: "Source A\nSource B"
GeneralStats:
type: "object"
properties:
added:
type: "integer"
format: "int64"
validated:
type: "integer"
format: "int64"
rejected:
type: "integer"
format: "int64"
contributors:
type: "integer"
format: "int64"

0 comments on commit 374d1ea

Please sign in to comment.