Skip to content

feat: not allowed to specify create_time and update_time when create/edit route, service, upstream and consumer #933

Closed
@membphis

Description

@membphis
{
        caseDesc: "update the route (r1)",
        Object:   ManagerApiExpect(t),
        Path:     "/apisix/admin/routes/r1",
        Method:   http.MethodPut,
        Body: `{
                        "uri": "/hello",
                        "name": "new jack",
                        "create_time": 1606726340,    // throw an error if it was specified
                        "update_time": 1606726340,    // throw an error if it was specified
                        "desc": "new desc",
                        "upstream": {
                                "type": "roundrobin",
                                "nodes": [{
                                        "host": "172.16.238.20",
                                        "port": 1980,
                                        "weight": 1
                                }]
                        }
                }`
},

original comment: https://github.com/apache/apisix-dashboard/pull/927/files#r533114051

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions