Skip to content

[Bug] Unable to perform GET request using Location Header returned for POST requests  #1613

@severussundar

Description

@severussundar

POST Specs specify that a Location header should be returned when a POST request results in the creation of a new item.

The Location Header returned by DAB is incorrect. Performing a GET request on it results in the following error.

Location Header returned at the moment: https://localhost:5001/api/Book//id/5009

GET request on this URI results in the following error

{
    "error": {
        "code": "BadRequest",
        "message": "Support for url template with implicit primary key field names is not yet added.",
        "status": 400
    }
}

Correct value to be returned: https://localhost:5001/api/Book/id/5009

For Stored Procedures:

Location Header returned: https://localhost:5001/api/CountBooks//CountBooks
Correct value to be returned: https://localhost:5001/api/CountBooks/

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingrest

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions