Add descriptions to upload routes

This commit is contained in:
soupette 2018-09-06 10:10:20 +02:00
parent 6b922b1c05
commit bf46f84cc1
10 changed files with 21 additions and 15 deletions

View File

@ -43,4 +43,4 @@
"npm": ">= 5.3.0" "npm": ">= 5.3.0"
}, },
"license": "MIT" "license": "MIT"
} }

View File

@ -43,4 +43,4 @@
"npm": ">= 5.3.0" "npm": ">= 5.3.0"
}, },
"license": "MIT" "license": "MIT"
} }

View File

@ -43,4 +43,4 @@
"npm": ">= 5.3.0" "npm": ">= 5.3.0"
}, },
"license": "MIT" "license": "MIT"
} }

View File

@ -49,4 +49,4 @@
"npm": ">= 5.3.0" "npm": ">= 5.3.0"
}, },
"license": "MIT" "license": "MIT"
} }

View File

@ -44,4 +44,4 @@
"npm": ">= 5.3.0" "npm": ">= 5.3.0"
}, },
"license": "MIT" "license": "MIT"
} }

View File

@ -43,4 +43,4 @@
"npm": ">= 5.3.0" "npm": ">= 5.3.0"
}, },
"license": "MIT" "license": "MIT"
} }

View File

@ -43,4 +43,4 @@
"npm": ">= 5.3.0" "npm": ">= 5.3.0"
}, },
"license": "MIT" "license": "MIT"
} }

View File

@ -55,4 +55,4 @@
"npm": ">= 5.3.0" "npm": ">= 5.3.0"
}, },
"license": "MIT" "license": "MIT"
} }

View File

@ -43,4 +43,4 @@
"npm": ">= 5.3.0" "npm": ">= 5.3.0"
}, },
"license": "MIT" "license": "MIT"
} }

View File

@ -5,7 +5,8 @@
"path": "/", "path": "/",
"handler": "Upload.upload", "handler": "Upload.upload",
"config": { "config": {
"policies": [] "policies": [],
"description": "Upload a file"
} }
}, },
{ {
@ -37,7 +38,8 @@
"path": "/files/count", "path": "/files/count",
"handler": "Upload.count", "handler": "Upload.count",
"config": { "config": {
"policies": [] "policies": [],
"description": "Retrieve the total number of uploaded files"
} }
}, },
{ {
@ -45,7 +47,8 @@
"path": "/files", "path": "/files",
"handler": "Upload.find", "handler": "Upload.find",
"config": { "config": {
"policies": [] "policies": [],
"description": "Retrieve all file documents"
} }
}, },
{ {
@ -53,7 +56,8 @@
"path": "/files/:_id", "path": "/files/:_id",
"handler": "Upload.findOne", "handler": "Upload.findOne",
"config": { "config": {
"policies": [] "policies": [],
"description": "Retrieve a single file depending on its id"
} }
}, },
{ {
@ -61,7 +65,8 @@
"path": "/search/:id", "path": "/search/:id",
"handler": "Upload.search", "handler": "Upload.search",
"config": { "config": {
"policies": [] "policies": [],
"description": "Search for an uploaded file"
} }
}, },
{ {
@ -69,7 +74,8 @@
"path": "/files/:_id", "path": "/files/:_id",
"handler": "Upload.destroy", "handler": "Upload.destroy",
"config": { "config": {
"policies": [] "policies": [],
"description": "Delete an uploaded file"
} }
} }
] ]