File tree Expand file tree Collapse file tree 6 files changed +24
-11
lines changed Expand file tree Collapse file tree 6 files changed +24
-11
lines changed Original file line number Diff line number Diff line change 44
55APP_NAME = swis-api
66APP_ROOT = /opt/${ APP_NAME }
7- APP_VERSION = 5.17.9
7+ APP_VERSION = 5.18.0
88
99
1010#
1111# build constants
1212#
1313
14- ALPINE_VERSION = 3.19
15- GOLANG_VERSION = 1.22
14+ ALPINE_VERSION = 3.20
15+ GOLANG_VERSION = 1.23
1616
1717# note: prod image needs 'tzdata' package present
1818TZ = Europe/Vienna
Original file line number Diff line number Diff line change 1- # swis-api (swapi) v5.17
1+ # swis-api (swapi) v5.18
22
33[ ![ Go Reference] ( https://pkg.go.dev/badge/go.vxn.dev/swis/v5.svg )] ( https://pkg.go.dev/go.vxn.dev/swis/v5 )
44[ ![ Go Report Card] ( https://goreportcard.com/badge/go.vxn.dev/swis/v5 )] ( https://goreportcard.com/report/go.vxn.dev/swis/v5 )
Original file line number Diff line number Diff line change 1313 "name" : " MIT" ,
1414 "url" : " https://github.com/vxn-dev/swis-api/blob/master/LICENSE"
1515 },
16- "version" : " 5.17.9 "
16+ "version" : " 5.18.0 "
1717 },
1818 "host" : " swis-api-run-prod:8050" ,
1919 "basePath" : " /" ,
3232 "200" : {
3333 "description" : " OK" ,
3434 "schema" : {
35- "type" : " array" ,
36- "items" : {
37- "$ref" : " #/definitions/pkg_alvax.ConfigRoot"
38- }
35+ "$ref" : " #/definitions/pkg_alvax.ConfigRootMap"
3936 }
4037 }
4138 }
39733970 }
39743971 }
39753972 },
3973+ "pkg_alvax.ConfigRootMap" : {
3974+ "type" : " object" ,
3975+ "properties" : {
3976+ "items" : {
3977+ "type" : " object" ,
3978+ "additionalProperties" : {
3979+ "$ref" : " #/definitions/pkg_alvax.ConfigRoot"
3980+ }
3981+ }
3982+ }
3983+ },
39763984 "pkg_alvax.Docker" : {
39773985 "type" : " object" ,
39783986 "properties" : {
Original file line number Diff line number Diff line change 11// @title swis-api (swapi) v5
2- // @version 5.17.9
2+ // @version 5.18.0
33// @description sakalWeb Information System v5 RESTful API documentation
44// @termsOfService http://swagger.io/terms/
55
@@ -80,6 +80,7 @@ func main() {
8080 // @Success 200
8181 // @Router /ping [get]
8282 // @Router /ping [head]
83+ // @Success 200 {string} "pong"
8384 // Very simple LE support --- https://github.com/gin-gonic/gin#support-lets-encrypt.
8485 router .GET ("/ping" , func (c * gin.Context ) {
8586 c .String (http .StatusOK , "pong" )
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ var restorePackage = &core.RestorePackage{
3535// @Description get alvax config list
3636// @Tags alvax
3737// @Produce json
38- // @Success 200 {object} [] alvax.ConfigRoot
38+ // @Success 200 {object} alvax.ConfigRootMap
3939// @Router /alvax [get]
4040func GetConfigs (ctx * gin.Context ) {
4141 core .PrintAllRootItems (ctx , Cache , pkgName )
Original file line number Diff line number Diff line change 11package alvax
22
3+ type ConfigRootMap struct {
4+ Items map [string ]ConfigRoot `json:"items"`
5+ }
6+
37type ConfigRoot struct {
48 ID string `json:"id" required:"true" readonly:"true"`
59 Key string `json:"key" required:"true"`
You can’t perform that action at this time.
0 commit comments