enroute icon indicating copy to clipboard operation
enroute copied to clipboard

Webapp: Error message for service creation not accurate

Open saarasio opened this issue 6 years ago • 0 comments

The error message below should say "Service_name" and not "Name"

[ec2-user@ip-172-31-18-10 enroute-cp]$ curl -s -X POST localhost:1323/service -H "Authorization: Bearer treehugger" -H "Content-Type: application/json" -d '{"Name":"adminservice"}' | python -m'' json.tool
{
    "Error": "Please provide service name using Name field"
}
[ec2-user@ip-172-31-18-10 enroute-cp]$ curl -s -X POST localhost:1323/service -H "Authorization: Bearer treehugger" -H "Content-Type: application/json" -d '{"Service_Name":"adminservice"}' | python -m'' json.tool
{
    "Error": "Please provide fqdn using Fqdn field"
}

saarasio avatar Sep 17 '19 03:09 saarasio