AbsaOSS / AbsaOSS/enceladus

VersionedModelController.create should yield Location header

Ouverte
#1,611 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
bug priority: undecided
Langage dominant
Scala
Étoiles
33
Forks
16
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

## 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)]

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.