refactor(server): plural endpoints (#9667)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"openapi": "3.0.0",
|
||||
"paths": {
|
||||
"/activity": {
|
||||
"/activities": {
|
||||
"get": {
|
||||
"operationId": "getActivities",
|
||||
"parameters": [
|
||||
@@ -120,7 +120,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/activity/statistics": {
|
||||
"/activities/statistics": {
|
||||
"get": {
|
||||
"operationId": "getActivityStatistics",
|
||||
"parameters": [
|
||||
@@ -171,7 +171,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/activity/{id}": {
|
||||
"/activities/{id}": {
|
||||
"delete": {
|
||||
"operationId": "deleteActivity",
|
||||
"parameters": [
|
||||
@@ -206,7 +206,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/album": {
|
||||
"/albums": {
|
||||
"get": {
|
||||
"operationId": "getAllAlbums",
|
||||
"parameters": [
|
||||
@@ -300,7 +300,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/album/count": {
|
||||
"/albums/count": {
|
||||
"get": {
|
||||
"operationId": "getAlbumCount",
|
||||
"parameters": [],
|
||||
@@ -332,7 +332,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/album/{id}": {
|
||||
"/albums/{id}": {
|
||||
"delete": {
|
||||
"operationId": "deleteAlbum",
|
||||
"parameters": [
|
||||
@@ -473,7 +473,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/album/{id}/assets": {
|
||||
"/albums/{id}/assets": {
|
||||
"delete": {
|
||||
"operationId": "removeAssetFromAlbum",
|
||||
"parameters": [
|
||||
@@ -589,7 +589,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/album/{id}/user/{userId}": {
|
||||
"/albums/{id}/user/{userId}": {
|
||||
"delete": {
|
||||
"operationId": "removeUserFromAlbum",
|
||||
"parameters": [
|
||||
@@ -683,7 +683,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/album/{id}/users": {
|
||||
"/albums/{id}/users": {
|
||||
"put": {
|
||||
"operationId": "addUsersToAlbum",
|
||||
"parameters": [
|
||||
@@ -735,7 +735,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/api-key": {
|
||||
"/api-keys": {
|
||||
"get": {
|
||||
"operationId": "getApiKeys",
|
||||
"parameters": [],
|
||||
@@ -810,7 +810,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/api-key/{id}": {
|
||||
"/api-keys/{id}": {
|
||||
"delete": {
|
||||
"operationId": "deleteApiKey",
|
||||
"parameters": [
|
||||
@@ -2256,7 +2256,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/face": {
|
||||
"/faces": {
|
||||
"get": {
|
||||
"operationId": "getFaces",
|
||||
"parameters": [
|
||||
@@ -2301,7 +2301,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/face/{id}": {
|
||||
"/faces/{id}": {
|
||||
"put": {
|
||||
"operationId": "reassignFacesById",
|
||||
"parameters": [
|
||||
@@ -2436,7 +2436,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/library": {
|
||||
"/libraries": {
|
||||
"get": {
|
||||
"operationId": "getAllLibraries",
|
||||
"parameters": [],
|
||||
@@ -2511,7 +2511,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/library/{id}": {
|
||||
"/libraries/{id}": {
|
||||
"delete": {
|
||||
"operationId": "deleteLibrary",
|
||||
"parameters": [
|
||||
@@ -2636,7 +2636,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/library/{id}/removeOffline": {
|
||||
"/libraries/{id}/removeOffline": {
|
||||
"post": {
|
||||
"operationId": "removeOfflineFiles",
|
||||
"parameters": [
|
||||
@@ -2671,7 +2671,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/library/{id}/scan": {
|
||||
"/libraries/{id}/scan": {
|
||||
"post": {
|
||||
"operationId": "scanLibrary",
|
||||
"parameters": [
|
||||
@@ -2716,7 +2716,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/library/{id}/statistics": {
|
||||
"/libraries/{id}/statistics": {
|
||||
"get": {
|
||||
"operationId": "getLibraryStatistics",
|
||||
"parameters": [
|
||||
@@ -2758,7 +2758,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/library/{id}/validate": {
|
||||
"/libraries/{id}/validate": {
|
||||
"post": {
|
||||
"operationId": "validate",
|
||||
"parameters": [
|
||||
@@ -3268,7 +3268,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/partner": {
|
||||
"/partners": {
|
||||
"get": {
|
||||
"operationId": "getPartners",
|
||||
"parameters": [
|
||||
@@ -3316,7 +3316,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/partner/{id}": {
|
||||
"/partners/{id}": {
|
||||
"delete": {
|
||||
"operationId": "removePartner",
|
||||
"parameters": [
|
||||
@@ -3441,7 +3441,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/person": {
|
||||
"/people": {
|
||||
"get": {
|
||||
"operationId": "getAllPeople",
|
||||
"parameters": [
|
||||
@@ -3565,7 +3565,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/person/{id}": {
|
||||
"/people/{id}": {
|
||||
"get": {
|
||||
"operationId": "getPerson",
|
||||
"parameters": [
|
||||
@@ -3657,7 +3657,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/person/{id}/assets": {
|
||||
"/people/{id}/assets": {
|
||||
"get": {
|
||||
"operationId": "getPersonAssets",
|
||||
"parameters": [
|
||||
@@ -3702,7 +3702,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/person/{id}/merge": {
|
||||
"/people/{id}/merge": {
|
||||
"post": {
|
||||
"operationId": "mergePerson",
|
||||
"parameters": [
|
||||
@@ -3757,7 +3757,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/person/{id}/reassign": {
|
||||
"/people/{id}/reassign": {
|
||||
"put": {
|
||||
"operationId": "reassignFaces",
|
||||
"parameters": [
|
||||
@@ -3812,7 +3812,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/person/{id}/statistics": {
|
||||
"/people/{id}/statistics": {
|
||||
"get": {
|
||||
"operationId": "getPersonStatistics",
|
||||
"parameters": [
|
||||
@@ -3854,7 +3854,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/person/{id}/thumbnail": {
|
||||
"/people/{id}/thumbnail": {
|
||||
"get": {
|
||||
"operationId": "getPersonThumbnail",
|
||||
"parameters": [
|
||||
@@ -3897,7 +3897,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/report": {
|
||||
"/reports": {
|
||||
"get": {
|
||||
"operationId": "getAuditFiles",
|
||||
"parameters": [],
|
||||
@@ -3929,7 +3929,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/report/checksum": {
|
||||
"/reports/checksum": {
|
||||
"post": {
|
||||
"operationId": "getFileChecksums",
|
||||
"parameters": [],
|
||||
@@ -3974,7 +3974,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/report/fix": {
|
||||
"/reports/fix": {
|
||||
"post": {
|
||||
"operationId": "fixAuditFiles",
|
||||
"parameters": [],
|
||||
@@ -4656,7 +4656,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/shared-link": {
|
||||
"/shared-links": {
|
||||
"get": {
|
||||
"operationId": "getAllSharedLinks",
|
||||
"parameters": [],
|
||||
@@ -4731,7 +4731,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/shared-link/me": {
|
||||
"/shared-links/me": {
|
||||
"get": {
|
||||
"operationId": "getMySharedLink",
|
||||
"parameters": [
|
||||
@@ -4789,7 +4789,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/shared-link/{id}": {
|
||||
"/shared-links/{id}": {
|
||||
"delete": {
|
||||
"operationId": "removeSharedLink",
|
||||
"parameters": [
|
||||
@@ -4914,7 +4914,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/shared-link/{id}/assets": {
|
||||
"/shared-links/{id}/assets": {
|
||||
"delete": {
|
||||
"operationId": "removeSharedLinkAssets",
|
||||
"parameters": [
|
||||
@@ -5407,7 +5407,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/tag": {
|
||||
"/tags": {
|
||||
"get": {
|
||||
"operationId": "getAllTags",
|
||||
"parameters": [],
|
||||
@@ -5482,7 +5482,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/tag/{id}": {
|
||||
"/tags/{id}": {
|
||||
"delete": {
|
||||
"operationId": "deleteTag",
|
||||
"parameters": [
|
||||
@@ -5607,7 +5607,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/tag/{id}/assets": {
|
||||
"/tags/{id}/assets": {
|
||||
"delete": {
|
||||
"operationId": "untagAssets",
|
||||
"parameters": [
|
||||
@@ -6105,7 +6105,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/user": {
|
||||
"/users": {
|
||||
"get": {
|
||||
"operationId": "getAllUsers",
|
||||
"parameters": [
|
||||
@@ -6229,7 +6229,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/user/info/{id}": {
|
||||
"/users/info/{id}": {
|
||||
"get": {
|
||||
"operationId": "getUserById",
|
||||
"parameters": [
|
||||
@@ -6271,7 +6271,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/user/me": {
|
||||
"/users/me": {
|
||||
"get": {
|
||||
"operationId": "getMyUserInfo",
|
||||
"parameters": [],
|
||||
@@ -6303,7 +6303,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/user/profile-image": {
|
||||
"/users/profile-image": {
|
||||
"delete": {
|
||||
"operationId": "deleteProfileImage",
|
||||
"parameters": [],
|
||||
@@ -6369,7 +6369,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/user/profile-image/{id}": {
|
||||
"/users/profile-image/{id}": {
|
||||
"get": {
|
||||
"operationId": "getProfileImage",
|
||||
"parameters": [
|
||||
@@ -6412,7 +6412,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/user/{id}": {
|
||||
"/users/{id}": {
|
||||
"delete": {
|
||||
"operationId": "deleteUser",
|
||||
"parameters": [
|
||||
@@ -6464,7 +6464,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/user/{id}/restore": {
|
||||
"/users/{id}/restore": {
|
||||
"post": {
|
||||
"operationId": "restoreUser",
|
||||
"parameters": [
|
||||
|
||||
Reference in New Issue
Block a user