Skip to content

Commit 0c159eb

Browse files
committed
add new service routes
1 parent 27be24f commit 0c159eb

File tree

2 files changed

+41
-2
lines changed

2 files changed

+41
-2
lines changed

swagger.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const swaggerAutogen = require('swagger-autogen')({openapi: '3.0.0'})
22
// https://github.com/davibaltar/swagger-autogen
33
const doc = {
44
info: {
5-
version: '1.5.0',
5+
version: '1.8.0',
66
title: 'Kubero',
77
description: 'Kubero is a web-based tool deploy applications on a Kubernetes clusters. It provides a simple and intuitive interface to manage your clusters, applications, and pipelines.',
88
},
@@ -55,4 +55,5 @@ swaggerAutogen('./swagger.json', [
5555
'./dist/routes/pipelines.js',
5656
'./dist/routes/repo.js',
5757
'./dist/routes/settings.js',
58+
'./dist/routes/services.js',
5859
], doc);

swagger.json

+39-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"openapi": "3.0.0",
33
"info": {
4-
"version": "1.5.0",
4+
"version": "1.8.0",
55
"title": "Kubero",
66
"description": "Kubero is a web-based tool deploy applications on a Kubernetes clusters. It provides a simple and intuitive interface to manage your clusters, applications, and pipelines."
77
},
@@ -1493,6 +1493,44 @@
14931493
}
14941494
}
14951495
}
1496+
},
1497+
"/services": {
1498+
"get": {
1499+
"tags": [
1500+
"UI"
1501+
],
1502+
"summary": "Get all services",
1503+
"description": "",
1504+
"parameters": [],
1505+
"responses": {}
1506+
}
1507+
},
1508+
"/services/{name}": {
1509+
"get": {
1510+
"tags": [
1511+
"UI"
1512+
],
1513+
"summary": "Get a specific service",
1514+
"description": "",
1515+
"parameters": [
1516+
{
1517+
"name": "name",
1518+
"in": "path",
1519+
"required": true,
1520+
"schema": {
1521+
"type": "string"
1522+
}
1523+
}
1524+
],
1525+
"responses": {
1526+
"200": {
1527+
"description": "OK"
1528+
},
1529+
"500": {
1530+
"description": "Internal Server Error"
1531+
}
1532+
}
1533+
}
14961534
}
14971535
},
14981536
"components": {

0 commit comments

Comments
 (0)