-
Notifications
You must be signed in to change notification settings - Fork 15
Webapp: Provide a way to delete a route by id #55
Copy link
Copy link
Open
Description
Note below that a route got created without a name. However we should be able to delete this route
ubuntu@ip-172-31-30-70:~/enroute/packaging$ curl -s localhost/service/adminservice/route -H "Authorization: Bearer treehugger" | jq
{
"data": {
"saaras_db_route": [
{
"route_id": 1,
"route_name": "route_docs",
"route_prefix": "/",
"create_ts": "2019-10-08T23:32:15.414923+00:00",
"update_ts": "2019-10-08T23:32:15.414923+00:00"
},
{
"route_id": 3,
"route_name": "",
"route_prefix": null,
"create_ts": "2019-10-08T23:59:31.653867+00:00",
"update_ts": "2019-10-08T23:59:31.653867+00:00"
}
]
}
}
ubuntu@ip-172-31-30-70:~/enroute/packaging$ curl -s -X DELETE localhost/service/adminservice/route/"" -H "Authorization: Bearer treehugger" | jq
{
"message": "Not Found"
}
We could implement a call like this to achieve it -
curl -s localhost/service/adminservice/routeid/3 -H "Authorization: Bearer treehugger" | jq
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels