Commit 571335de authored by FORESTIER Fabien's avatar FORESTIER Fabien
Browse files

Add geonetUuid in the datasetRestricted endpoint

parent 0ef81c42
Pipeline #3159 failed with stages
in 7 seconds
......@@ -417,6 +417,7 @@ export interface IRestrictedAccesDataset {
abstract: string;
url: string;
id: number;
geonet_uuid: string;
name: string;
modes: IService[];
}
......@@ -426,6 +427,10 @@ export class RestrictedAccessDataset {
@IsInt()
datasetId: number;
@ApiModelProperty()
@IsString()
geonetUuid: string;
@ApiModelProperty()
@IsString()
datasetName: string;
......@@ -444,6 +449,7 @@ export class RestrictedAccessDataset {
constructor(dataset: IRestrictedAccesDataset) {
if (dataset) {
this.datasetId = dataset.id ? dataset.id : null;
this.geonetUuid = dataset.geonet_uuid ? dataset.geonet_uuid : '';
this.datasetName = dataset.name ? dataset.name : '';
this.abstract = dataset.abstract ? dataset.abstract : '';
this.urlPattern = dataset.url ? dataset.url : '';
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment