Skip to content

Commit 28e3212

Browse files
committed
fix dumping script, update docs
1 parent 20f5e72 commit 28e3212

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
APP_NAME=swis-api
66
APP_ROOT=/opt/${APP_NAME}
7-
APP_VERSION=5.18.0
7+
APP_VERSION=5.18.1
88

99

1010
#

api/swagger.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"name": "MIT",
1414
"url": "https://github.com/vxn-dev/swis-api/blob/master/LICENSE"
1515
},
16-
"version": "5.18.0"
16+
"version": "5.18.1"
1717
},
1818
"host": "swis-api-run-prod:8050",
1919
"basePath": "/",
@@ -4931,22 +4931,22 @@
49314931
"properties": {
49324932
"domains": {
49334933
"description": "Domains linked to such infrastructure.",
4934-
"type": "array",
4935-
"items": {
4934+
"type": "object",
4935+
"additionalProperties": {
49364936
"$ref": "#/definitions/pkg_infra.Domain"
49374937
}
49384938
},
49394939
"hosts": {
49404940
"description": "Hosts/nodes linked to such infrastructure.",
4941-
"type": "array",
4942-
"items": {
4941+
"type": "object",
4942+
"additionalProperties": {
49434943
"$ref": "#/definitions/pkg_infra.Host"
49444944
}
49454945
},
49464946
"networks": {
49474947
"description": "Networks linked to such infrastructure.",
4948-
"type": "array",
4949-
"items": {
4948+
"type": "object",
4949+
"additionalProperties": {
49504950
"$ref": "#/definitions/pkg_infra.Network"
49514951
}
49524952
}

cmd/swis-api/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// @title swis-api (swapi) v5
2-
// @version 5.18.0
2+
// @version 5.18.1
33
// @description sakalWeb Information System v5 RESTful API documentation
44
// @termsOfService http://swagger.io/terms/
55

scripts/dump_prod_data.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,20 +54,20 @@ function dump_generic {
5454

5555
declare -a paths=(
5656
"/alvax"
57-
"/backups/"
58-
"/business/"
57+
"/backups"
58+
"/business"
5959
"/depots/items"
60-
"/dish/"
60+
"/dish"
6161

62-
"/finance/"
63-
"/infra/"
64-
"/links/"
62+
"/finance"
63+
"/infra"
64+
"/links"
6565
"/news/sources"
66-
"/projects/"
66+
"/projects"
6767

6868
"/queue/tasks"
69-
"/roles/"
70-
"/users/"
69+
"/roles"
70+
"/users"
7171
)
7272
declare -a files=(
7373
"/alvax_configs.json"

0 commit comments

Comments
 (0)