AbsaOSS / AbsaOSS/enceladus

VersionedModelController.create should yield Location header

Offen
#1,611 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug priority: undecided
Vorherrschende Sprache
Scala
Sterne
33
Forks
16
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

## Describe the bug
All extending classes of `VersionedModelController` define a `/create` endpoint that persists an entity when called with POST. Correct response `201 Created` is returned. Customarily, this should be accompanied by the Location header with the URI pointing to the created item.

## To Reproduce
Steps to reproduce the behavior OR commands run:
1. Call e.g. `PUT /api/dataset/create` with a valid DS content.
2. Inspect the response.

## Expected behaviour
Location header to be generally present with all entity-creating calls.

## Additional context
An example of this is implemented in `PropertyDefinitionController.createDatasetProperty` : [[1](https://github.com/AbsaOSS/enceladus/blob/8d173718817572d25fc01449ef357092eda0205f/menas/src/main/scala/za/co/absa/enceladus/menas/controllers/PropertyDefinitionController.scala)]

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.