D4Science D4Science Don't have a D4Science account? Create one Could not find what you are looking for? Contact us.

Metadata Resource

POST /Metadata

Request Parameters
name type description
uploadedMeta formdata
uploadedMetaDetails formdata
Request Body
media type data type
multipart/form-data (custom)
Response Body
media type data type description
application/json string (JSON)

Example

Request
POST /SDI-Service/Metadata
Content-Type: multipart/form-data
Accept: application/json

                
...
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
...
                
              

GET /Metadata/list

Response Body
media type data type description
application/json array of TemplateDescriptor (JSON)

Example

Request
GET /SDI-Service/Metadata/list
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
[ {
  "templateID" : "...",
  "name" : "...",
  "description" : "...",
  "sourceURL" : "...",
  "parameters" : [ {
    "name" : "...",
    "value" : "..."
  }, {
    "name" : "...",
    "value" : "..."
  } ]
} ]
                
              

PUT /Metadata/{uploadedId}

Request Parameters
name type description
uploadedId path
Request Body
media type data type
application/json array of TemplateInvocation (JSON)
Response Body
media type data type description
application/json MetadataReport (JSON)

Example

Request
PUT /SDI-Service/Metadata/{uploadedId}
Content-Type: application/json
Accept: application/json

                
[ {
  "templateID" : "...",
  "parameters" : [ {
    "name" : "...",
    "value" : "..."
  }, {
    "name" : "...",
    "value" : "..."
  } ]
} ]
                
              
Response
HTTP/1.1 204 No Content
Content-Type: application/json

                
{
  "publishedUUID" : "...",
  "publishedID" : 12345,
  "appliedTemplates" : [ "...", "..." ]
}
                
              

GET /Metadata/publish/{uploadedId}/{gnCategory}

Request Parameters
name type description default constraints
gnCategory path    
uploadedId path    
public query false boolean
stylesheet query _none_  
validate query true boolean
Response Body
media type data type description
application/json MetadataReport (JSON)

Example

Request
GET /SDI-Service/Metadata/publish/{uploadedId}/{gnCategory}
Content-Type: application/json
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
{
  "publishedUUID" : "...",
  "publishedID" : 12345,
  "appliedTemplates" : [ "...", "..." ]
}