Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webapp: Provide a way to delete a route by id #55

Open
saarasio opened this issue Oct 9, 2019 · 0 comments
Open

Webapp: Provide a way to delete a route by id #55

saarasio opened this issue Oct 9, 2019 · 0 comments

Comments

@saarasio
Copy link
Owner

saarasio commented Oct 9, 2019

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant