docs(backend): document PATCH share endpoint

This commit is contained in:
2025-12-28 19:06:51 +00:00
parent e3d78497e8
commit 0e8c616489
3 changed files with 204 additions and 5 deletions

View File

@@ -301,7 +301,7 @@
"200": {
"description": "Trashed directories (when trash=true)",
"content": {
"application/json": {
"*/*": {
"schema": {
"type": "array",
"items": {
@@ -469,7 +469,7 @@
"200": {
"description": "Trashed directory info (when trash=true)",
"content": {
"application/json": {
"*/*": {
"schema": {
"$ref": "#/components/schemas/internal_catalog.DirectoryInfo"
}
@@ -927,7 +927,7 @@
"200": {
"description": "Trashed files (when trash=true)",
"content": {
"application/json": {
"*/*": {
"schema": {
"type": "array",
"items": {
@@ -1576,6 +1576,95 @@
}
}
}
},
"patch": {
"security": [
{
"BearerAuth": []
}
],
"description": "Update share link details. Omit expiresAt to keep the current value. Use null to remove the expiry.",
"tags": [
"shares"
],
"summary": "Update share",
"parameters": [
{
"description": "Account ID",
"name": "accountID",
"in": "path",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
}
},
{
"description": "Share ID",
"name": "shareID",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/internal_sharing.patchShareRequest"
}
}
},
"description": "Share details",
"required": true
},
"responses": {
"200": {
"description": "Updated share",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/internal_sharing.Share"
}
}
}
},
"400": {
"description": "Invalid request",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
},
"401": {
"description": "Not authenticated",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
},
"404": {
"description": "Share not found",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
}
}
}
},
"/accounts/{accountID}/uploads": {
@@ -2533,6 +2622,17 @@
}
}
},
"internal_sharing.patchShareRequest": {
"description": "Request to update a share link. Omit expiresAt to keep the current value. Use null to remove the expiry.",
"type": "object",
"properties": {
"expiresAt": {
"description": "Optional expiration time for the share (ISO 8601), null clears it.",
"type": "string",
"example": "2025-01-15T00:00:00Z"
}
}
},
"internal_upload.Status": {
"description": "Upload status enumeration",
"type": "string",
@@ -2634,4 +2734,4 @@
}
}
}
}
}