Skip to content

Commit 1ae247b

Browse files
committed
Fix swagger doc and rename references for time db fields
1 parent a2f1922 commit 1ae247b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+236
-316
lines changed

backend/embed/api_docs/components/CertificateAuthorityObject.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"additionalProperties": false,
55
"required": [
66
"id",
7-
"created_on",
8-
"modified_on",
7+
"created_at",
8+
"updated_at",
99
"name",
1010
"acmesh_server",
1111
"ca_bundle",
@@ -18,13 +18,15 @@
1818
"type": "integer",
1919
"minimum": 1
2020
},
21-
"created_on": {
21+
"created_at": {
2222
"type": "integer",
23-
"minimum": 1
23+
"minimum": 1,
24+
"description": "Created Unix time with milliseconds"
2425
},
25-
"modified_on": {
26+
"updated_at": {
2627
"type": "integer",
27-
"minimum": 1
28+
"minimum": 1,
29+
"description": "Updated Unix time with milliseconds"
2830
},
2931
"name": {
3032
"type": "string",

backend/embed/api_docs/components/CertificateObject.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"additionalProperties": false,
55
"required": [
66
"id",
7-
"created_on",
8-
"modified_on",
7+
"created_at",
8+
"updated_at",
99
"expires_on",
1010
"type",
1111
"user_id",
@@ -21,13 +21,15 @@
2121
"type": "integer",
2222
"minimum": 1
2323
},
24-
"created_on": {
24+
"created_at": {
2525
"type": "integer",
26-
"minimum": 1
26+
"minimum": 1,
27+
"description": "Created Unix time with milliseconds"
2728
},
28-
"modified_on": {
29+
"updated_at": {
2930
"type": "integer",
30-
"minimum": 1
31+
"minimum": 1,
32+
"description": "Updated Unix time with milliseconds"
3133
},
3234
"expires_on": {
3335
"type": "integer",

backend/embed/api_docs/components/DNSProviderObject.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"additionalProperties": false,
55
"required": [
66
"id",
7-
"created_on",
8-
"modified_on",
7+
"created_at",
8+
"updated_at",
99
"user_id",
1010
"name",
1111
"acmesh_name",
@@ -17,13 +17,15 @@
1717
"type": "integer",
1818
"minimum": 1
1919
},
20-
"created_on": {
20+
"created_at": {
2121
"type": "integer",
22-
"minimum": 1
22+
"minimum": 1,
23+
"description": "Created Unix time with milliseconds"
2324
},
24-
"modified_on": {
25+
"updated_at": {
2526
"type": "integer",
26-
"minimum": 1
27+
"minimum": 1,
28+
"description": "Updated Unix time with milliseconds"
2729
},
2830
"user_id": {
2931
"type": "integer",

backend/embed/api_docs/components/HostObject.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"additionalProperties": false,
55
"required": [
66
"id",
7-
"created_on",
8-
"modified_on",
7+
"created_at",
8+
"updated_at",
99
"expires_on",
1010
"user_id",
1111
"provider",
@@ -17,13 +17,15 @@
1717
"type": "integer",
1818
"minimum": 1
1919
},
20-
"created_on": {
20+
"created_at": {
2121
"type": "integer",
22-
"minimum": 1
22+
"minimum": 1,
23+
"description": "Created Unix time with milliseconds"
2324
},
24-
"modified_on": {
25+
"updated_at": {
2526
"type": "integer",
26-
"minimum": 1
27+
"minimum": 1,
28+
"description": "Updated Unix time with milliseconds"
2729
},
2830
"expires_on": {
2931
"type": "integer",

backend/embed/api_docs/components/NginxTemplateObject.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"additionalProperties": false,
55
"required": [
66
"id",
7-
"created_on",
8-
"modified_on",
7+
"created_at",
8+
"updated_at",
99
"user_id",
1010
"name",
1111
"type",
@@ -16,13 +16,15 @@
1616
"type": "integer",
1717
"minimum": 1
1818
},
19-
"created_on": {
19+
"created_at": {
2020
"type": "integer",
21-
"minimum": 1
21+
"minimum": 1,
22+
"description": "Created Unix time with milliseconds"
2223
},
23-
"modified_on": {
24+
"updated_at": {
2425
"type": "integer",
25-
"minimum": 1
26+
"minimum": 1,
27+
"description": "Updated Unix time with milliseconds"
2628
},
2729
"user_id": {
2830
"type": "integer",

backend/embed/api_docs/components/SettingObject.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,21 @@
22
"type": "object",
33
"description": "SettingObject",
44
"additionalProperties": false,
5-
"required": ["id", "name", "value"],
5+
"required": ["id", "created_at", "updated_at", "name", "value"],
66
"properties": {
77
"id": {
88
"type": "integer",
99
"minimum": 1
1010
},
11-
"created_on": {
11+
"created_at": {
1212
"type": "integer",
13-
"minimum": 1
13+
"minimum": 1,
14+
"description": "Created Unix time with milliseconds"
1415
},
15-
"modified_on": {
16+
"updated_at": {
1617
"type": "integer",
17-
"minimum": 1
18+
"minimum": 1,
19+
"description": "Updated Unix time with milliseconds"
1820
},
1921
"name": {
2022
"type": "string",

backend/embed/api_docs/components/StreamObject.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"additionalProperties": false,
55
"required": [
66
"id",
7-
"created_on",
8-
"modified_on",
7+
"created_at",
8+
"updated_at",
99
"expires_on",
1010
"user_id",
1111
"provider",
@@ -17,13 +17,15 @@
1717
"type": "integer",
1818
"minimum": 1
1919
},
20-
"created_on": {
20+
"created_at": {
2121
"type": "integer",
22-
"minimum": 1
22+
"minimum": 1,
23+
"description": "Created Unix time with milliseconds"
2324
},
24-
"modified_on": {
25+
"updated_at": {
2526
"type": "integer",
26-
"minimum": 1
27+
"minimum": 1,
28+
"description": "Updated Unix time with milliseconds"
2729
},
2830
"expires_on": {
2931
"type": "integer",

backend/embed/api_docs/components/UpstreamObject.json

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"additionalProperties": false,
55
"required": [
66
"id",
7-
"created_on",
8-
"modified_on",
7+
"created_at",
8+
"updated_at",
99
"user_id",
1010
"name",
1111
"nginx_template_id",
@@ -25,13 +25,15 @@
2525
"type": "integer",
2626
"minimum": 1
2727
},
28-
"created_on": {
28+
"created_at": {
2929
"type": "integer",
30-
"minimum": 1
30+
"minimum": 1,
31+
"description": "Created Unix time with milliseconds"
3132
},
32-
"modified_on": {
33+
"updated_at": {
3334
"type": "integer",
34-
"minimum": 1
35+
"minimum": 1,
36+
"description": "Updated Unix time with milliseconds"
3537
},
3638
"user_id": {
3739
"type": "integer",
@@ -83,8 +85,8 @@
8385
"additionalProperties": false,
8486
"required": [
8587
"id",
86-
"created_on",
87-
"modified_on",
88+
"created_at",
89+
"updated_at",
8890
"upstream_id",
8991
"server",
9092
"weight",
@@ -98,13 +100,15 @@
98100
"type": "integer",
99101
"minimum": 1
100102
},
101-
"created_on": {
103+
"created_at": {
102104
"type": "integer",
103-
"minimum": 1
105+
"minimum": 1,
106+
"description": "Created Unix time with milliseconds"
104107
},
105-
"modified_on": {
108+
"updated_at": {
106109
"type": "integer",
107-
"minimum": 1
110+
"minimum": 1,
111+
"description": "Updated Unix time with milliseconds"
108112
},
109113
"upstream_id": {
110114
"type": "integer",

backend/embed/api_docs/components/UserAuthObject.json

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,29 @@
22
"type": "object",
33
"description": "UserAuthObject",
44
"additionalProperties": false,
5-
"required": ["id", "user_id", "type", "created_on", "modified_on"],
5+
"required": ["id", "user_id", "type", "created_at", "updated_at"],
66
"properties": {
77
"id": {
88
"type": "integer",
99
"minimum": 1
1010
},
11+
"created_at": {
12+
"type": "integer",
13+
"minimum": 1,
14+
"description": "Created Unix time with milliseconds"
15+
},
16+
"updated_at": {
17+
"type": "integer",
18+
"minimum": 1,
19+
"description": "Updated Unix time with milliseconds"
20+
},
1121
"user_id": {
1222
"type": "integer",
1323
"minimum": 1
1424
},
1525
"type": {
1626
"type": "string",
1727
"pattern": "^password$"
18-
},
19-
"created_on": {
20-
"type": "integer",
21-
"minimum": 1
22-
},
23-
"modified_on": {
24-
"type": "integer",
25-
"minimum": 1
2628
}
2729
}
2830
}

backend/embed/api_docs/components/UserObject.json

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,28 @@
44
"additionalProperties": false,
55
"required": [
66
"id",
7+
"created_at",
8+
"updated_at",
79
"name",
810
"nickname",
911
"email",
10-
"created_on",
11-
"modified_on",
1212
"is_disabled"
1313
],
1414
"properties": {
1515
"id": {
1616
"type": "integer",
1717
"minimum": 1
1818
},
19+
"created_at": {
20+
"type": "integer",
21+
"minimum": 1,
22+
"description": "Created Unix time with milliseconds"
23+
},
24+
"updated_at": {
25+
"type": "integer",
26+
"minimum": 1,
27+
"description": "Updated Unix time with milliseconds"
28+
},
1929
"name": {
2030
"type": "string",
2131
"minLength": 2,
@@ -31,14 +41,6 @@
3141
"minLength": 5,
3242
"maxLength": 150
3343
},
34-
"created_on": {
35-
"type": "integer",
36-
"minimum": 1
37-
},
38-
"modified_on": {
39-
"type": "integer",
40-
"minimum": 1
41-
},
4244
"gravatar_url": {
4345
"type": "string"
4446
},

0 commit comments

Comments
 (0)