1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00

update local spec files

This commit is contained in:
Matthias Kretschmann 2019-04-17 12:01:59 +02:00
parent 7579c9a100
commit f126896b76
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 615 additions and 724 deletions

View File

@ -1,46 +1,37 @@
{ {
"basePath":"/api/v1/aquarius", "definitions": {},
"definitions":{
},
"host":"myfancyaquarius.com",
"info": { "info": {
"description":"Aquarius provides an off-chain database store for metadata about data assets. When running with our Docker images, it is exposed under `http://localhost:5000`.", "description": "Aquarius provides an off-chain database store for metadata about data assets. When running with our Docker images, it is exposed under:`http://0.0.0.0:5000`.",
"title": "Aquarius", "title": "Aquarius",
"version":"0.1.4" "version": "0.2.2"
}, },
"paths": { "paths": {
"/api/v1/aquarius/assets": { "/api/v1/aquarius/assets": {
"get": { "get": {
"description": "", "description": "",
"responses":{ "responses": { "200": { "description": "successful action" } },
"200":{
"description":"successful action"
}
},
"summary": "Get all asset IDs.", "summary": "Get all asset IDs.",
"tags":[ "tags": ["ddo"]
"ddo"
]
} }
}, },
"/api/v1/aquarius/assets/ddo": { "/api/v1/aquarius/assets/ddo": {
"get":{ "delete": {
"description": "", "description": "",
"responses": { "responses": {
"200":{ "200": { "description": "successfully deleted" },
"description":"successful action" "500": { "description": "Error" }
}
}, },
"summary": "Retire metadata of all the assets.",
"tags": ["ddo"]
},
"get": {
"description": "",
"responses": { "200": { "description": "successful action" } },
"summary": "Get DDO of all assets.", "summary": "Get DDO of all assets.",
"tags":[ "tags": ["ddo"]
"ddo"
]
}, },
"post": { "post": {
"consumes":[ "consumes": ["application/json"],
"application/json"
],
"description": "", "description": "",
"parameters": [ "parameters": [
{ {
@ -58,32 +49,37 @@
"authentication": { "authentication": {
"description": "List of authentication mechanisms.", "description": "List of authentication mechanisms.",
"example": [ "example": [
{ { "type": "RsaSignatureAuthentication2018" },
"type":"RsaSignatureAuthentication2018" { "publicKey": "did:op:123456789abcdefghi#keys-1" }
},
{
"publicKey":"did:op:123456789abcdefghi#keys-1"
}
], ],
"type": "array" "type": "array"
}, },
"created": {
"description": "date of ddo creation.",
"example": "2016-02-08T16:02:20Z",
"type": "string"
},
"id": { "id": {
"description": "ID of the asset.", "description": "ID of the asset.",
"example": "did:op:123456789abcdefghi", "example": "did:op:123456789abcdefghi",
"type": "string" "type": "string"
}, },
"proof": {
"description": "Information about the creation and creator of the asset.",
"example": {
"created": "2016-02-08T16:02:20Z",
"creator": "did:example:8uQhQMGzWxR8vw5P3UWH1ja",
"signatureValue": "QNB13Y7Q9...1tzjn4w==",
"type": "UUIDSignature"
},
"type": "dictionary"
},
"publicKey": { "publicKey": {
"description": "List of public keys.", "description": "List of public keys.",
"example": [ "example": [
{ { "id": "did:op:123456789abcdefghi#keys-1" },
"id":"did:op:123456789abcdefghi#keys-1" { "type": "Ed25519VerificationKey2018" },
}, { "owner": "did:op:123456789abcdefghi" },
{
"type":"Ed25519VerificationKey2018"
},
{
"owner":"did:op:123456789abcdefghi"
},
{ {
"publicKeyBase58": "H3C2AVvLMv6gmMNam3uVAjZpfkcJCwDwnZn6z3wXmqPV" "publicKeyBase58": "H3C2AVvLMv6gmMNam3uVAjZpfkcJCwDwnZn6z3wXmqPV"
} }
@ -95,7 +91,7 @@
"example": [ "example": [
{ {
"serviceEndpoint": "http://mybrizo.org/api/v1/brizo/services/consume?pubKey=${ pubKey}&serviceId={serviceId}&url={url}", "serviceEndpoint": "http://mybrizo.org/api/v1/brizo/services/consume?pubKey=${ pubKey}&serviceId={serviceId}&url={url}",
"type":"Consume" "type": "Access"
}, },
{ {
"serviceEndpoint": "http://mybrizo.org/api/v1/brizo/services/compute?pubKey=${ pubKey}&serviceId={serviceId}&algo={algo}&container={container}", "serviceEndpoint": "http://mybrizo.org/api/v1/brizo/services/compute?pubKey=${ pubKey}&serviceId={serviceId}&algo={algo}&container={container}",
@ -118,268 +114,21 @@
}, },
"base": { "base": {
"author": "Met Office", "author": "Met Office",
"checksum": "38803b9e6f04fce3fba4b124524672592264d31847182c689095a081c9e85262",
"compression": "zip", "compression": "zip",
"contentType":"text/csv",
"contentUrls":[
"https://testocnfiles.blob.core.windows.net/testfiles/testzkp.zip"
],
"copyrightHolder": "Met Office", "copyrightHolder": "Met Office",
"dateCreated":"2012-10-10T17:00:000Z", "dateCreated": "2012-02-01T10:55:11Z",
"description": "Weather information of UK including temperature and humidity", "description": "Weather information of UK including temperature and humidity",
"encoding":"UTF-8", "encryptedFiles": "0x098213xzckasdf089723hjgdasfkjgasfv",
"inLanguage":"en", "files": [
"license":"CC-BY",
"links":[
{ {
"sample1":"http://data.ceda.ac.uk/badc/ukcp09/data/gridded-land-obs/gridded-land-obs-daily/"
},
{
"sample2":"http://data.ceda.ac.uk/badc/ukcp09/data/gridded-land-obs/gridded-land-obs-averages-25km/"
},
{
"fieldsDescription":"http://data.ceda.ac.uk/badc/ukcp09/"
}
],
"name":"UK Weather information 2011",
"price":10,
"size":"3.1gb",
"tags":"weather, uk, 2011, temperature, humidity",
"type":"dataset",
"workExample":"423432fsd,51.509865,-0.118092,2011-01-01T10:55:11+00:00,7.2,68"
},
"curation":{
"numVotes":123,
"rating":0.93,
"schema":"Binary Votting"
}
},
"serviceEndpoint":"http://myaquarius.org/api/v1/provider/assets/metadata/{did}",
"type":"Metadata"
}
],
"type":"array"
}
},
"required":[
"@context",
"id",
"publicKey",
"authentication",
"service"
],
"type":"object"
}
}
],
"responses":{
"201":{
"description":"Asset successfully registered."
},
"400":{
"description":"One of the required attributes is missing."
},
"404":{
"description":"Invalid asset data."
},
"500":{
"description":"Error"
}
},
"summary":"Register DDO of a new asset",
"tags":[
"ddo"
]
}
},
"/api/v1/aquarius/assets/ddo/query":{
"get":{
"description":"",
"parameters":[
{
"description":"ID of the asset.",
"in":"query",
"name":"text",
"required":true,
"type":"string"
},
{
"description":"Key or list of keys to sort the result",
"example":{
"value":1
},
"in":"query",
"name":"sort",
"type":"object"
},
{
"description":"Number of records per page",
"example":100,
"in":"query",
"name":"offset",
"type":"int"
},
{
"description":"Page showed",
"example":0,
"in":"query",
"name":"page",
"type":"int"
}
],
"responses":{
"200":{
"description":"successful action"
}
},
"summary":"Get a list of DDOs that match with the given text.",
"tags":[
"ddo"
]
},
"post":{
"consumes":[
"application/json"
],
"description":"",
"parameters":[
{
"description":"Asset metadata.",
"in":"body",
"name":"body",
"required":true,
"schema":{
"properties":{
"offset":{
"description":"Number of records per page",
"example":100,
"type":"int"
},
"page":{
"description":"Page showed",
"example":0,
"type":"int"
},
"query":{
"description":"Query to realize",
"example":{
"value":1
},
"type":"string"
},
"sort":{
"description":"Key or list of keys to sort the result",
"example":{
"value":1
},
"type":"object"
}
},
"type":"object"
}
}
],
"responses":{
"200":{
"description":"successful action"
}
},
"summary":"Get a list of DDOs that match with the executed query.",
"tags":[
"ddo"
]
}
},
"/api/v1/aquarius/assets/ddo/{did}":{
"put":{
"consumes":[
"application/json"
],
"description":"",
"parameters":[
{
"description":"DDO of the asset.",
"in":"body",
"name":"body",
"required":true,
"schema":{
"properties":{
"@context":{
"description":null,
"example":"https://w3id.org/future-method/v1",
"type":"string"
},
"authentication":{
"description":"List of authentication mechanisms.",
"example":[
{
"type":"RsaSignatureAuthentication2018"
},
{
"publicKey":"did:op:123456789abcdefghi#keys-1"
}
],
"type":"array"
},
"id":{
"description":"ID of the asset.",
"example":"did:op:123456789abcdefghi",
"type":"string"
},
"publicKey":{
"description":"List of public keys.",
"example":[
{
"id":"did:op:123456789abcdefghi#keys-1"
},
{
"type":"Ed25519VerificationKey2018"
},
{
"owner":"did:op:123456789abcdefghi"
},
{
"publicKeyBase58":"H3C2AVvLMv6gmMNam3uVAjZpfkcJCwDwnZn6z3wXmqPV"
}
],
"type":"array"
},
"service":{
"description":"List of services.",
"example":[
{
"serviceEndpoint":"http://mybrizo.org/api/v1/brizo/services/consume?pubKey=${pubKey}&serviceId={serviceId}&url={url}",
"type":"Consume"
},
{
"serviceEndpoint":"http://mybrizo.org/api/v1/brizo/services/compute?pubKey=${pubKey}&serviceId={serviceId}&algo={algo}&container={container}",
"type":"Compute"
},
{
"metadata":{
"additionalInformation":{
"structuredMarkup":[
{
"mediaType":"application/ld+json",
"uri":"http://skos.um.es/unescothes/C01194/jsonld"
},
{
"mediaType":"text/turtle",
"uri":"http://skos.um.es/unescothes/C01194/turtle"
}
],
"updateFrecuency":"yearly"
},
"base":{
"author":"Met Office",
"compression": "zip", "compression": "zip",
"contentLength": "4535431",
"contentType": "text/csv", "contentType": "text/csv",
"contentUrls":[
"https://testocnfiles.blob.core.windows.net/testfiles/testzkp.zip"
],
"copyrightHolder":"Met Office",
"dateCreated":"2012-10-10T17:00:000Z",
"description":"Weather information of UK including temperature and humidity",
"encoding": "UTF-8", "encoding": "UTF-8",
"resourceId": "access-log2018-02-13-15-17-29-18386C502CAEA932"
}
],
"inLanguage": "en", "inLanguage": "en",
"license": "CC-BY", "license": "CC-BY",
"links": [ "links": [
@ -396,10 +145,9 @@
], ],
"name": "UK Weather information 2011", "name": "UK Weather information 2011",
"price": 10, "price": 10,
"size":"3.1gb",
"tags": "weather, uk, 2011, temperature, humidity", "tags": "weather, uk, 2011, temperature, humidity",
"type": "dataset", "type": "dataset",
"workExample":"423432fsd,51.509865,-0.118092,2011-01-01T10:55:11+00:00,7.2,68" "workExample": "stationId,latitude,longitude,datetime, temperature,humidity/n423432fsd,51.509865,-0.118092, 2011-01-01T10:55:11+00:00,7.2,68"
}, },
"curation": { "curation": {
"numVotes": 123, "numVotes": 123,
@ -407,7 +155,8 @@
"schema": "Binary Voting" "schema": "Binary Voting"
} }
}, },
"serviceEndpoint":"http://myaquarius.org/api/v1/aquarius/assets/metadata/{did}", "serviceDefinitionId": "2",
"serviceEndpoint": "http://myaquarius.org/api/v1/provider/assets/metadata/{did}",
"type": "Metadata" "type": "Metadata"
} }
], ],
@ -417,8 +166,10 @@
"required": [ "required": [
"@context", "@context",
"id", "id",
"created",
"publicKey", "publicKey",
"authentication", "authentication",
"proof",
"service" "service"
], ],
"type": "object" "type": "object"
@ -426,105 +177,331 @@
} }
], ],
"responses": { "responses": {
"200":{ "201": { "description": "Asset successfully registered." },
"description":"Asset successfully updated."
},
"201":{
"description":"Asset successfully registered."
},
"400": { "400": {
"description": "One of the required attributes is missing." "description": "One of the required attributes is missing."
}, },
"404":{ "404": { "description": "Invalid asset data." },
"description":"Invalid asset data." "500": { "description": "Error" }
}, },
"500":{ "summary": "Register DDO of a new asset",
"description":"Error" "tags": ["ddo"]
} }
}, },
"summary":"Update DDO of an existing asset", "/api/v1/aquarius/assets/ddo/query": {
"tags":[ "get": {
"ddo" "description": "",
] "parameters": [
{
"description": "ID of the asset.",
"in": "query",
"name": "text",
"required": true,
"type": "string"
},
{
"description": "Key or list of keys to sort the result",
"example": { "value": 1 },
"in": "query",
"name": "sort",
"type": "object"
},
{
"description": "Number of records per page",
"example": 100,
"in": "query",
"name": "offset",
"type": "int"
},
{
"description": "Page showed",
"example": 1,
"in": "query",
"name": "page",
"type": "int"
}
],
"responses": { "200": { "description": "successful action" } },
"summary": "Get a list of DDOs that match with the given text.",
"tags": ["ddo"]
},
"post": {
"consumes": ["application/json"],
"description": "",
"parameters": [
{
"description": "Asset metadata.",
"in": "body",
"name": "body",
"required": true,
"schema": {
"properties": {
"offset": {
"description": "Number of records per page",
"example": 100,
"type": "int"
},
"page": {
"description": "Page showed",
"example": 1,
"type": "int"
},
"query": {
"description": "Query to realize",
"example": { "value": 1 },
"type": "string"
},
"sort": {
"description": "Key or list of keys to sort the result",
"example": { "value": 1 },
"type": "object"
} }
}, },
"/api/v1/aquarius/assets/ddo/{id}":{ "type": "object"
}
}
],
"responses": { "200": { "description": "successful action" } },
"summary": "Get a list of DDOs that match with the executed query.",
"tags": ["ddo"]
}
},
"/api/v1/aquarius/assets/ddo/validate": {
"post": {
"consumes": ["application/json"],
"description": "",
"parameters": [
{
"description": "Asset metadata.",
"in": "body",
"name": "body",
"required": true,
"schema": { "type": "object" }
}
],
"responses": {
"200": { "description": "successfully request." },
"500": { "description": "Error" }
},
"summary": "Validate metadata content.",
"tags": ["ddo"]
}
},
"/api/v1/aquarius/assets/ddo/{did}": {
"delete": { "delete": {
"description": "", "description": "",
"parameters": [ "parameters": [
{ {
"description":"ID of the asset.", "description": "DID of the asset.",
"in": "path", "in": "path",
"name":"id", "name": "did",
"required": true, "required": true,
"type": "string" "type": "string"
} }
], ],
"responses": { "responses": {
"200":{ "200": { "description": "successfully deleted" },
"description":"successfully deleted" "404": { "description": "This asset DID is not in OceanDB" },
}, "500": { "description": "Error" }
"404":{
"description":"This asset ID is not in OceanDB"
},
"500":{
"description":"Error"
}
}, },
"summary": "Retire metadata of an asset", "summary": "Retire metadata of an asset",
"tags":[ "tags": ["ddo"]
"ddo"
]
}, },
"get": { "get": {
"description": "", "description": "",
"parameters": [ "parameters": [
{ {
"description":"ID of the asset.", "description": "DID of the asset.",
"in": "path", "in": "path",
"name":"id", "name": "did",
"required": true, "required": true,
"type": "string" "type": "string"
} }
], ],
"responses": { "responses": {
"200":{ "200": { "description": "successful operation" },
"description":"successful operation" "404": { "description": "This asset DID is not in OceanDB" }
},
"404":{
"description":"This asset ID is not in OceanDB"
}
}, },
"summary": "Get DDO of a particular asset.", "summary": "Get DDO of a particular asset.",
"tags":[ "tags": ["ddo"]
"ddo" },
] "put": {
"consumes": ["application/json"],
"description": "",
"parameters": [
{
"description": "DDO of the asset.",
"in": "body",
"name": "body",
"required": true,
"schema": {
"properties": {
"@context": {
"description": null,
"example": "https://w3id.org/future-method/v1",
"type": "string"
},
"authentication": {
"description": "List of authentication mechanisms.",
"example": [
{ "type": "RsaSignatureAuthentication2018" },
{ "publicKey": "did:op:123456789abcdefghi#keys-1" }
],
"type": "array"
},
"created": {
"description": "date of ddo creation.",
"example": "2016-02-08T16:02:20Z",
"type": "string"
},
"id": {
"description": "ID of the asset.",
"example": "did:op:123456789abcdefghi",
"type": "string"
},
"proof": {
"description": "Information about the creation and creator of the asset.",
"example": {
"created": "2016-02-08T16:02:20Z",
"creator": "did:example:8uQhQMGzWxR8vw5P3UWH1ja",
"signatureValue": "QNB13Y7Q9...1tzjn4w==",
"type": "UUIDSignature"
},
"type": "dictionary"
},
"publicKey": {
"description": "List of public keys.",
"example": [
{ "id": "did:op:123456789abcdefghi#keys-1" },
{ "type": "Ed25519VerificationKey2018" },
{ "owner": "did:op:123456789abcdefghi" },
{
"publicKeyBase58": "H3C2AVvLMv6gmMNam3uVAjZpfkcJCwDwnZn6z3wXmqPV"
}
],
"type": "array"
},
"service": {
"description": "List of services.",
"example": [
{
"serviceEndpoint": "http://mybrizo.org/api/v1/brizo/services/consume?pubKey=${ pubKey}&serviceId={serviceId}&url={url}",
"type": "Access"
},
{
"serviceEndpoint": "http://mybrizo.org/api/v1/brizo/services/compute?pubKey=${ pubKey}&serviceId={serviceId}&algo={algo}&container={container}",
"type": "Compute"
},
{
"metadata": {
"additionalInformation": {
"structuredMarkup": [
{
"mediaType": "application/ld+json",
"uri": "http://skos.um.es/unescothes/C01194/jsonld"
},
{
"mediaType": "text/turtle",
"uri": "http://skos.um.es/unescothes/C01194/turtle"
}
],
"updateFrecuency": "yearly"
},
"base": {
"author": "Met Office",
"checksum": "38803b9e6f04fce3fba4b124524672592264d31847182c689095a081c9e85262",
"compression": "zip",
"copyrightHolder": "Met Office",
"dateCreated": "2012-02-01T10:55:11Z",
"description": "Weather information of UK including temperature and humidity",
"encryptedFiles": "0x098213xzckasdf089723hjgdasfkjgasfv",
"files": [
{
"compression": "zip",
"contentLength": "4535431",
"contentType": "text/csv",
"encoding": "UTF-8",
"resourceId": "access-log2018-02-13-15-17-29-18386C502CAEA932"
}
],
"inLanguage": "en",
"license": "CC-BY",
"links": [
{
"name": "Sample of Asset Data",
"type": "sample",
"url": "https://foo.com/sample.csv"
},
{
"AssetID": "4d517500da0acb0d65a716f61330969334630363ce4a6a9d39691026ac7908ea",
"name": "Data Format Definition",
"type": "format"
}
],
"name": "UK Weather information 2011",
"price": 10,
"tags": "weather, uk, 2011, temperature, humidity",
"type": "dataset",
"workExample": "stationId,latitude,longitude,datetime, temperature,humidity/n423432fsd,51.509865,-0.118092, 2011-01-01T10:55:11+00:00,7.2,68"
},
"curation": {
"numVotes": 123,
"rating": 0.93,
"schema": "Binary Voting"
} }
}, },
"/api/v1/aquarius/assets/metadata/{id}":{ "serviceDefinitionId": "2",
"serviceEndpoint": "http://myaquarius.org/api/v1/provider/assets/metadata/{did}",
"type": "Metadata"
}
],
"type": "array"
}
},
"required": [
"@context",
"created",
"id",
"publicKey",
"authentication",
"proof",
"service"
],
"type": "object"
}
}
],
"responses": {
"200": { "description": "Asset successfully updated." },
"201": { "description": "Asset successfully registered." },
"400": {
"description": "One of the required attributes is missing."
},
"404": { "description": "Invalid asset data." },
"500": { "description": "Error" }
},
"summary": "Update DDO of an existing asset",
"tags": ["ddo"]
}
},
"/api/v1/aquarius/assets/metadata/{did}": {
"get": { "get": {
"description": "", "description": "",
"parameters": [ "parameters": [
{ {
"description":"ID of the asset.", "description": "DID of the asset.",
"in": "path", "in": "path",
"name":"id", "name": "did",
"required": true, "required": true,
"type": "string" "type": "string"
} }
], ],
"responses": { "responses": {
"200":{ "200": { "description": "successful operation." },
"description":"successful operation." "404": { "description": "This asset DID is not in OceanDB." }
},
"404":{
"description":"This asset ID is not in OceanDB."
}
}, },
"summary": "Get metadata of a particular asset", "summary": "Get metadata of a particular asset",
"tags":[ "tags": ["metadata"]
"metadata"
]
} }
} }
}, },

View File

@ -1,20 +1,14 @@
{ {
"basePath":"/api/v1/brizo", "definitions": {},
"definitions":{
},
"host":"myfancybrizo.com",
"info": { "info": {
"description": "Brizo is the technical component executed by Publishers allowing them to provide extended data services. When running with our Docker images, it is exposed under `http://localhost:8030`.", "description": "Brizo is the technical component executed by Publishers allowing them to provide extended data services. When running with our Docker images, it is exposed under `http://localhost:8030`.",
"title": "Brizo", "title": "Brizo",
"version":"0.1.2" "version": "0.3.5"
}, },
"paths": { "paths": {
"/api/v1/brizo/services/access/initialize": { "/api/v1/brizo/services/access/initialize": {
"post": { "post": {
"consumes":[ "consumes": ["application/json"],
"application/json"
],
"description": "", "description": "",
"parameters": [ "parameters": [
{ {
@ -55,9 +49,7 @@
"serviceAgreementId", "serviceAgreementId",
"serviceDefinitionId", "serviceDefinitionId",
"signature", "signature",
{ { "consumerAddress": null }
"consumerAddress":null
}
], ],
"type": "object" "type": "object"
} }
@ -70,87 +62,17 @@
"400": { "400": {
"description": "One of the required attributes is missing." "description": "One of the required attributes is missing."
}, },
"404":{ "401": { "description": "Error executing the service agreement." },
"description":"Invalid signature." "422": { "description": "Ocean DID not found on chain." },
"500": { "description": "Error" }
}, },
"500":{ "summary": "Initialize the service agreement between the publisher and the consumer.",
"description":"Error" "tags": ["services"]
}
},
"summary":"Initialize the SLA between the publisher and the consumer.",
"tags":[
"services"
]
}
},
"/api/v1/brizo/services/compute":{
"post":{
"consumes":[
"application/json"
],
"description":"",
"parameters":[
{
"description":"Asset metadata.",
"in":"body",
"name":"body",
"required":true,
"schema":{
"properties":{
"algorithm_did":{
"description":"Identifier of the algorithm to execute",
"example":"0x0234242345",
"type":"string"
},
"asset_did":{
"description":"Identifier of the asset registered in Ocean",
"example":"0x0234242345",
"type":"string"
},
"consumer_wallet":{
"description":"Address of the wallet of the asset consumer. Ex. data-science...",
"example":"0x0234242345",
"type":"string"
},
"cpu":{
"description":"Number of CPUs to execute the algorithm.",
"example":1,
"type":"integer"
},
"docker_image":{
"description":"Docker image where the algorithm is going to be executed. Docker image must include all the libraries needed to run it.",
"example":"python:3.6-alpine",
"type":"string"
},
"memory":{
"description":"Ammout of memory in GB to run the algorithm",
"example":1.5,
"type":"number"
}
},
"required":[
"asset_did",
"algorithm_did",
"consumer_wallet"
],
"type":"object"
}
}
],
"responses":{
},
"summary":"Allows to execute an algorithm inside a Docker instance in the cloud. Requires the publisher of the assets to provide this service in the service agreement related with the requested `asset_did`.",
"tags":[
"services"
]
} }
}, },
"/api/v1/brizo/services/consume": { "/api/v1/brizo/services/consume": {
"get": { "get": {
"consumes":[ "consumes": ["application/json"],
"application/json"
],
"description": "", "description": "",
"parameters": [ "parameters": [
{ {
@ -176,23 +98,15 @@
} }
], ],
"responses": { "responses": {
"302":{ "200": { "description": "Redirect to valid asset url." },
"description":"Redirect to valid asset url."
},
"400": { "400": {
"description": "One of the required attributes is missing." "description": "One of the required attributes is missing."
}, },
"404":{ "401": { "description": "Invalid asset data." },
"description":"Invalid asset data." "500": { "description": "Error" }
},
"500":{
"description":"Error"
}
}, },
"summary": "Allows download of asset data file.", "summary": "Allows download of asset data file.",
"tags":[ "tags": ["services"]
"services"
]
} }
} }
}, },