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"
},
"license": "MIT"
}
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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