mirror of
https://github.com/strapi/strapi.git
synced 2025-11-26 23:22:01 +00:00
Add descriptions to upload routes
This commit is contained in:
parent
6b922b1c05
commit
bf46f84cc1
@ -43,4 +43,4 @@
|
|||||||
"npm": ">= 5.3.0"
|
"npm": ">= 5.3.0"
|
||||||
},
|
},
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
@ -43,4 +43,4 @@
|
|||||||
"npm": ">= 5.3.0"
|
"npm": ">= 5.3.0"
|
||||||
},
|
},
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
@ -43,4 +43,4 @@
|
|||||||
"npm": ">= 5.3.0"
|
"npm": ">= 5.3.0"
|
||||||
},
|
},
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
@ -49,4 +49,4 @@
|
|||||||
"npm": ">= 5.3.0"
|
"npm": ">= 5.3.0"
|
||||||
},
|
},
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
@ -44,4 +44,4 @@
|
|||||||
"npm": ">= 5.3.0"
|
"npm": ">= 5.3.0"
|
||||||
},
|
},
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
@ -43,4 +43,4 @@
|
|||||||
"npm": ">= 5.3.0"
|
"npm": ">= 5.3.0"
|
||||||
},
|
},
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
@ -43,4 +43,4 @@
|
|||||||
"npm": ">= 5.3.0"
|
"npm": ">= 5.3.0"
|
||||||
},
|
},
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
@ -55,4 +55,4 @@
|
|||||||
"npm": ">= 5.3.0"
|
"npm": ">= 5.3.0"
|
||||||
},
|
},
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
@ -43,4 +43,4 @@
|
|||||||
"npm": ">= 5.3.0"
|
"npm": ">= 5.3.0"
|
||||||
},
|
},
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user