Closed vietnguyen closed 2 years ago
Wonder if the naming (/dataElements/batch
) could be made a bit more descriptive and specific, i.e. batch is quite generic. Perhaps instead use /dataElements/sharing
. That way it is consistent with dataElements/{uid}/sharing
, and being at dataElements
level implies it applies to many objects.
We said we make it a https://github.com/dhis2/notes/discussions right? Does it exist? Can we link it here?
Requirement
Endpoint
/batch
endpoint to all metadata api.Content-type: application/json-patch+json
? )Parameters
Backend function
batch
method toAbstractCrudController
for servingapi/{object-type}/batch
JsonIdPatchOperation
which extendsJsonPatchOperation
and add anid
property.request.getInputStream()
.id
property fromList<JsonIdPatchOperation>
.List<JsonIdPatchOperation>
to persisted objects .Validation
Response
/api/metadata
api.Payload
Bonus