Skip to content

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

@saarasio

Description

@saarasio

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions