initial commit
commit
d597387286
|
@ -0,0 +1,3 @@
|
|||
# API-CLI
|
||||
|
||||
A commandline interface for generating and linting apibuilder-based api-specs.
|
|
@ -0,0 +1 @@
|
|||
console.log("Generate a new Service")
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"name": "api-cli",
|
||||
"version": "1.0.0",
|
||||
"lockfileVersion": 1
|
||||
}
|
|
@ -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": {}
|
||||
}
|
|
@ -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": {
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue