aboutsummaryrefslogtreecommitdiffstats
path: root/templates/swagger/v1_json.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/swagger/v1_json.tmpl')
-rw-r--r--templates/swagger/v1_json.tmpl63
1 files changed, 60 insertions, 3 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl
index f37c900cca..d3e2ac6113 100644
--- a/templates/swagger/v1_json.tmpl
+++ b/templates/swagger/v1_json.tmpl
@@ -4433,6 +4433,20 @@
"name": "index",
"in": "path",
"required": true
+ },
+ {
+ "type": "string",
+ "format": "date-time",
+ "description": "Only show times updated after the given time. This is a timestamp in RFC 3339 format",
+ "name": "since",
+ "in": "query"
+ },
+ {
+ "type": "string",
+ "format": "date-time",
+ "description": "Only show times updated before the given time. This is a timestamp in RFC 3339 format",
+ "name": "before",
+ "in": "query"
}
],
"responses": {
@@ -4543,7 +4557,7 @@
"$ref": "#/responses/error"
},
"403": {
- "$ref": "#/responses/error"
+ "$ref": "#/responses/forbidden"
}
}
}
@@ -4601,7 +4615,7 @@
"$ref": "#/responses/error"
},
"403": {
- "$ref": "#/responses/error"
+ "$ref": "#/responses/forbidden"
}
}
}
@@ -6419,6 +6433,26 @@
"name": "repo",
"in": "path",
"required": true
+ },
+ {
+ "type": "string",
+ "description": "optional filter by user",
+ "name": "user",
+ "in": "query"
+ },
+ {
+ "type": "string",
+ "format": "date-time",
+ "description": "Only show times updated after the given time. This is a timestamp in RFC 3339 format",
+ "name": "since",
+ "in": "query"
+ },
+ {
+ "type": "string",
+ "format": "date-time",
+ "description": "Only show times updated before the given time. This is a timestamp in RFC 3339 format",
+ "name": "before",
+ "in": "query"
}
],
"responses": {
@@ -6427,6 +6461,9 @@
},
"400": {
"$ref": "#/responses/error"
+ },
+ "403": {
+ "$ref": "#/responses/forbidden"
}
}
}
@@ -6437,10 +6474,11 @@
"application/json"
],
"tags": [
- "user"
+ "repository"
],
"summary": "List a user's tracked times in a repo",
"operationId": "userTrackedTimes",
+ "deprecated": true,
"parameters": [
{
"type": "string",
@@ -6470,6 +6508,9 @@
},
"400": {
"$ref": "#/responses/error"
+ },
+ "403": {
+ "$ref": "#/responses/forbidden"
}
}
}
@@ -7685,6 +7726,22 @@
],
"summary": "List the current user's tracked times",
"operationId": "userCurrentTrackedTimes",
+ "parameters": [
+ {
+ "type": "string",
+ "format": "date-time",
+ "description": "Only show times updated after the given time. This is a timestamp in RFC 3339 format",
+ "name": "since",
+ "in": "query"
+ },
+ {
+ "type": "string",
+ "format": "date-time",
+ "description": "Only show times updated before the given time. This is a timestamp in RFC 3339 format",
+ "name": "before",
+ "in": "query"
+ }
+ ],
"responses": {
"200": {
"$ref": "#/responses/TrackedTimeList"