Skip to content

Commit

Permalink
Merge pull request #138 from spaceflightnewsapi/development
Browse files Browse the repository at this point in the history
Added count paths and updated docs
  • Loading branch information
derkweijers authored Jun 30, 2021
2 parents 77ad3bc + caced1a commit 9c521a0
Show file tree
Hide file tree
Showing 18 changed files with 5,566 additions and 1,292 deletions.
8 changes: 8 additions & 0 deletions api/article/config/routes.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
{
"routes": [
{
"method": "GET",
"path": "/articles/count",
"handler": "article.count",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/articles",
Expand Down
57 changes: 57 additions & 0 deletions api/article/documentation/3.0.0/article.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,62 @@
{
"paths": {
"/articles/count": {
"get": {
"deprecated": false,
"description": "",
"responses": {
"200": {
"description": "response",
"content": {
"application/json": {
"schema": {
"properties": {
"count": {
"type": "integer"
}
}
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"default": {
"description": "unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"summary": "",
"tags": [
"Article"
],
"parameters": []
}
},
"/articles": {
"get": {
"deprecated": false,
Expand Down
Loading

0 comments on commit 9c521a0

Please sign in to comment.