|
@@ -25,8 +25,6 @@ const router = express.Router()
|
|
|
* @apiParam {Number} horizontalExtractCount The amount of extracts for the horizontal axis
|
|
|
* @apiParam {Number} verticalExtractCount The amount of extracts for the vertical axis
|
|
|
*
|
|
|
- * @apiHeader (Response Headers) {String} Content-Type application/json; charset=utf-8
|
|
|
- *
|
|
|
* @apiExample Usage example
|
|
|
* curl -i -L -X GET "http://diran.univ-littoral.fr/api/getImageExtracts?sceneName=bathroom&imageQuality=200&horizontalExtractCount=1&verticalExtractCount=2"
|
|
|
*
|
|
@@ -40,14 +38,14 @@ const router = express.Router()
|
|
|
* ]
|
|
|
* }
|
|
|
*
|
|
|
- * @apiError (Error 4xx) 400 Missing parameter(s)
|
|
|
+ * @apiError (Error 4xx) 400_[1] Missing parameter(s)
|
|
|
* @apiErrorExample {json} Missing parameter
|
|
|
* HTTP/1.1 400 Bad Request
|
|
|
* {
|
|
|
* "message": "Missing parameter(s). Required parameters : sceneName, imageQuality, horizontalExtractCount, verticalExtractCount."
|
|
|
* }
|
|
|
*
|
|
|
- * @apiError (Error 4xx) 400 Invalid query parameter
|
|
|
+ * @apiError (Error 4xx) 400_[2] Invalid query parameter
|
|
|
* @apiErrorExample {json} Invalid query parameter(s)
|
|
|
* HTTP/1.1 400 Bad Request
|
|
|
* {
|
|
@@ -60,7 +58,7 @@ const router = express.Router()
|
|
|
* ]
|
|
|
* }
|
|
|
*
|
|
|
- * @apiError (Error 4xx) 400 Invalid configuration
|
|
|
+ * @apiError (Error 4xx) 400_[3] Invalid configuration
|
|
|
* @apiErrorExample {json} Invalid configuration
|
|
|
* HTTP/1.1 400 Bad Request
|
|
|
* {
|
|
@@ -71,21 +69,21 @@ const router = express.Router()
|
|
|
* ]
|
|
|
* }
|
|
|
*
|
|
|
- * @apiError (Error 4xx) 404 Quality not found
|
|
|
+ * @apiError (Error 4xx) 404_[1] Quality not found
|
|
|
* @apiErrorExample {json} Quality not found
|
|
|
* HTTP/1.1 404 Not Found
|
|
|
* {
|
|
|
* "message": "The requested quality (9999) was not found for the requested scene (bathroom)."
|
|
|
* }
|
|
|
*
|
|
|
- * @apiError (Error 5xx) 500 Can't access the `IMAGES_PATH` directory
|
|
|
+ * @apiError (Error 5xx) 500_[1] Can't access the `IMAGES_PATH` directory
|
|
|
* @apiErrorExample {json} Images directory not accessible
|
|
|
* HTTP/1.1 500 Internal Server Error
|
|
|
* {
|
|
|
* "message": "Can't access the \"images\" directory. Check it exists and you have read permission on it"
|
|
|
* }
|
|
|
*
|
|
|
- * @apiError (Error 5xx) 500 Failed to parse a file's name
|
|
|
+ * @apiError (Error 5xx) 500_[2] Failed to parse a file's name
|
|
|
* @apiErrorExample {json} Failed to parse a file's name
|
|
|
* HTTP/1.1 500 Internal Server Error
|
|
|
* {
|