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/
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/5009GET 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/5009For Stored Procedures:
Location Header returned:
https://localhost:5001/api/CountBooks//CountBooksCorrect value to be returned:
https://localhost:5001/api/CountBooks/