initial commit

master
Niclas Thobaben 2021-07-07 11:18:50 +02:00
commit d597387286
5 changed files with 68 additions and 0 deletions

3
README.md 100644
View File

@ -0,0 +1,3 @@
# API-CLI
A commandline interface for generating and linting apibuilder-based api-specs.

View File

@ -0,0 +1 @@
console.log("Generate a new Service")

5
package-lock.json generated 100644
View File

@ -0,0 +1,5 @@
{
"name": "api-cli",
"version": "1.0.0",
"lockfileVersion": 1
}

18
package.json 100644
View File

@ -0,0 +1,18 @@
{
"name": "api-cli",
"version": "1.0.0",
"description": "Commandline interface for generating and linting api-specs.",
"main": "index.js",
"scripts": {
"generate": "node generate-service.js"
},
"keywords": [
"api",
"apispec",
"apibuilder",
"nclazz"
],
"author": "Niclas Thobaben",
"license": "MIT",
"dependencies": {}
}

View File

@ -0,0 +1,41 @@
{
"name": "",
"description": "Common resources to be implemented by all other services. This spec can be used as a template for other services.",
"info": {
"contact": {
"name": "Niclas Thobaben",
"email": "info@nclazz.de",
"url": "nclazz.de"
}
},
"imports": [],
"headers": [],
"enums": {},
"interfaces": {},
"models": {
"healthcheck": {
"description": "A simple response indicating the health status of a service.",
"fields": [
{ "name": "status", "type": "string" }
]
}
},
"unions": {},
"resources": {
"healthcheck": {
"path": "/_internal_/healthcheck",
"operations": {
"method": "GET",
"path": "/healthcheck",
"description": "Simple healthcheck endpoint to test the status of the service.",
"responses": {
"200": { "type": "healthcheck", "description": "Get the current health status of the service." }
}
}
}
},
"attributes": {},
"annotations": {
}
}