Added validation for app name length when creating an app #27
Merged
tcdlpds
merged 9 commits from ravindu/device-mgt-core:master
into master
2 years ago
Loading…
Reference in new issue
There is no content yet.
Delete Branch 'ravindu/device-mgt-core:master'
Deleting a branch is permanent. It CANNOT be undone. Continue?
@ApiResponse(
code = 409,
message = "CONFLICT. \n Application exists"),
@ApiResponse(
What's the reason to use 411 error code to handle this case?
Bit confused with the variable length and defined Content-Length header (it must be used when the server refuses to accept the request without a defined Content-Length header.). In here it must be bad request error code. I will correct it.
Yes for this case you need to send Bad Request
log.error(msg);
return Response.status(Response.Status.BAD_REQUEST).build();
}
if(appName.length()>20){
fix formatting issues
ok
Added validation for app name length when creating an app (backend part)to Added validation for app name length when creating an app 2 years agoe28c71d4ae
into master 2 years agoReviewers
e28c71d4ae
.