File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1313### Added
1414- Adding mime type for geojson
1515- Add "when" parameter in a few GET API endpoints to enable pagination [ #266 ] ( https://github.com/clowder-framework/clowder/issues/266 )
16+ - Add "id" in GET metadata.jsonld endpoints [ #278 ] ( https://github.com/clowder-framework/clowder/issues/278 )
1617
1718## 1.18.1 - 2021-08-16
1819
Original file line number Diff line number Diff line change @@ -63,7 +63,8 @@ object JSONLD {
6363 )
6464
6565 // convert metadata to json using implicit writes in Metadata model
66- val metadataJson = resourceJson ++ toJson(metadata).asInstanceOf [JsObject ]
66+ // include metadata ID in the json
67+ val metadataJson = JsObject (Seq (" id" -> JsString (metadata.id.toString()))) ++ resourceJson ++ toJson(metadata).asInstanceOf [JsObject ]
6768
6869 // combine the two json objects and return
6970 if (contextJson.isEmpty) metadataJson else contextJson.get ++ metadataJson
You can’t perform that action at this time.
0 commit comments