Commit b5e00181 authored by FORESTIER Fabien's avatar FORESTIER Fabien
Browse files

Add geonetUuid in user resources endpoint

parent 9b152134
Pipeline #3155 passed with stages
in 4 minutes and 42 seconds
{
"name": "legacy-auth-middleware",
"version": "3.1.0",
"version": "3.2.0",
"description": "description",
"author": "",
"license": "MIT",
......
......@@ -373,6 +373,7 @@ export interface IResource {
mode: string;
service: string;
valid_until: string;
geonet_uuid: string;
}
export class Resource {
......@@ -384,6 +385,10 @@ export class Resource {
@IsString()
datasetName: string;
@ApiModelProperty()
@IsString()
geonetUuid: string;
@ApiModelProperty()
@IsString()
serviceName: string;
......@@ -404,6 +409,7 @@ export class Resource {
if (service) {
this.datasetId = service.service_id ? service.service_id : null;
this.datasetName = service.service ? service.service : '';
this.geonetUuid = service.geonet_uuid ? service.geonet_uuid : null;
this.serviceName = service.mode ? service.mode : '';
this.status = service.status ? service.status : '';
this.validUntil = service.valid_until ? moment.utc(service.valid_until, 'DD/MM/YYYY', true).toString() : null;
......
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