Api doc + license

This commit is contained in:
ycc 2024-09-05 09:27:26 +02:00
parent 3b749a741a
commit c058bb389c
5 changed files with 18 additions and 19 deletions

View File

@ -11,7 +11,6 @@ import (
) )
const appname = "oc-workflow" const appname = "oc-workflow"
const defaultConfigFile = "/etc/oc/conf.json"
func main() { func main() {
// Init the oc-lib // Init the oc-lib

BIN
oc-workflow Executable file

Binary file not shown.

View File

@ -1,10 +1,10 @@
// @APIVersion 1.0.0 // @APIVersion 1.0.0
// @Title beego Test API // @Title oc-workflow
// @Description beego has a very cool tools to autogenerate documents for your API // @Description Workflows management api
// @Contact astaxie@gmail.com // @Contact admin@o-cloud.io
// @TermsOfServiceUrl http://beego.me/ // @TermsOfServiceUrl http://cloud.o-forge.io/
// @License Apache 2.0 // @License MIT
// @LicenseUrl http://www.apache.org/licenses/LICENSE-2.0.html // @LicenseUrl https://opensource.org/license/mit
package routers package routers
import ( import (

View File

@ -1,16 +1,16 @@
{ {
"swagger": "2.0", "swagger": "2.0",
"info": { "info": {
"title": "beego Test API", "title": "oc-workflow",
"description": "beego has a very cool tools to autogenerate documents for your API\n", "description": "Workflows management api\n",
"version": "1.0.0", "version": "1.0.0",
"termsOfService": "http://beego.me/", "termsOfService": "http://cloud.o-forge.io/",
"contact": { "contact": {
"email": "astaxie@gmail.com" "email": "admin@o-cloud.io"
}, },
"license": { "license": {
"name": "Apache 2.0", "name": "MIT",
"url": "http://www.apache.org/licenses/LICENSE-2.0.html" "url": "https://opensource.org/license/mit"
} }
}, },
"basePath": "/oc/", "basePath": "/oc/",

View File

@ -1,15 +1,15 @@
swagger: "2.0" swagger: "2.0"
info: info:
title: beego Test API title: oc-workflow
description: | description: |
beego has a very cool tools to autogenerate documents for your API Workflows management api
version: 1.0.0 version: 1.0.0
termsOfService: http://beego.me/ termsOfService: http://cloud.o-forge.io/
contact: contact:
email: astaxie@gmail.com email: admin@o-cloud.io
license: license:
name: Apache 2.0 name: MIT
url: http://www.apache.org/licenses/LICENSE-2.0.html url: https://opensource.org/license/mit
basePath: /oc/ basePath: /oc/
paths: paths:
/version/: /version/: