by Dr. Patrick Bartsch 2013-2016
version: v1.5.3-W3C
Content delivery network service for viwi
Table of contents
General information
version: 1.5.3-W3C
Repository:
Author
Dr. Patrick Bartsch <patrick.bartsch@volkswagen.de>
Resources
/cdn/images/
Retrieve binary image data. The server will scale content down - not up - on request. If not othewise requested, it will deliver the closest match (default).
imageObject
Properties
name | description | type | format | unit(s) | value(s) |
---|---|---|---|---|---|
Resource level access (/cdn/images/)
GET
Note: Use a http GET request on /cdn/images/ to retrieve a list of available elements of type imageObject
Subscribe to /cdn/images/ to receive updates for element creations or removals from the collection.
Request parameters
The following parameters can be used with the request and subscriptions:
name | type | format | mandatory |
---|---|---|---|
w | integer | no | |
h | integer | no | |
scale | boolean | no |
Request/response example
GET /cdn/images/ HTTP/1.1
Host: 127.0.0.1:9000
Connection: keep-alive
Accept: application/json
User-Agent: Chrome/34.0.1847.137 Safari/537.36
Accept-Encoding: gzip,deflate
Accept-Language: en-US,en;q=0.8,de;q=0.6
=>
HTTP/1.1 200 OK
Vary: Accept-Encoding
Content-Type: application/json; charset=utf-8
ETag: "-32550834"
Content-Encoding: gzip
Date: Tue, 07 Apr 1980 00:00:00 GMT
Connection: keep-alive
Transfer-Encoding: chunked
{
"status": "ok",
"data": [
{
"id": "3901a278-ba17-44d6-9aef-f7ca67c04840",
"name": "lorem ipsum",
"uri": "/cdn/images/3901a278-ba17-44d6-9aef-f7ca67c04840"
},
{
"id": "8901870-b526-11e3-a5e2-0800200c9a66",
"name": "dolor sit",
"uri": "/cdn/images/8901870-b526-11e3-a5e2-0800200c9a66"
}
]
}
Element level access (/cdn/images/:uuid)
GET
Note:
Use a http GET request on /cdn/images/:uuid to retrieve a particular imageObject
Subscribe to /cdn/images/:uuid to receive updates on element level changes.
Request parameters
The following parameters can be used with the request and subscriptions:
name | type | mandatory |
---|---|---|
w | integer | no |
h | integer | no |
scale | boolean | no |
Request/response example
GET /cdn/images/3901a278-ba17-44d6-9aef-f7ca67c04840 HTTP/1.1
Host: 127.0.0.1:9000
Connection: keep-alive
Accept: application/json
User-Agent: Chrome/34.0.1847.137 Safari/537.36
Accept-Encoding: gzip,deflate
Accept-Language: en-US,en;q=0.8,de;q=0.6
HTTP/1.1 200 OK
Vary: Accept-Encoding
Content-Type: application/json; charset=utf-8
ETag: "-32550834"
Content-Encoding: gzip
Date: Tue, 07 Apr 1980 00:00:00 GMT
Connection: keep-alive
Transfer-Encoding: chunked
{
"status": "ok",
"data": [
{
"id": "3901a278-ba17-44d6-9aef-f7ca67c04840",
"name": "lorem ipsum",
"uri": "/cdn/images/3901a278-ba17-44d6-9aef-f7ca67c04840"
}
]
}
PUT
Note:
Use a http PUT request on /cdn/images/:uuid to create a custom imageObject
Subscribe to /cdn/images/:uuid to receive updates on element level changes.
Request/response example
PUT /cdn/images/3901a278-ba17-44d6-9aef-f7ca67c04840 HTTP/1.1
Host: 127.0.0.1:9000
Connection: keep-alive
Accept: application/json
User-Agent: Chrome/34.0.1847.137 Safari/537.36
Accept-Encoding: gzip,deflate
Accept-Language: en-US,en;q=0.8,de;q=0.6
HTTP/1.1 201 Created
Vary: Accept-Encoding
Content-Type: application/json; charset=utf-8
ETag: "-32550834"
Content-Encoding: gzip
Date: Tue, 07 Apr 1980 00:00:00 GMT
Connection: keep-alive
Transfer-Encoding: chunked
Location: /cdn/images/3901a278-ba17-44d6-9aef-f7ca67c04840
{
"status": "ok"
}
DELETE
Note:
Use a http DELETE request on /cdn/images/:uuid to update a particular imageObject
Subscribe to /cdn/images/:uuid to receive updates on element level changes.
Request/response example
DELETE /cdn/images/3901a278-ba17-44d6-9aef-f7ca67c04840 HTTP/1.1
Host: 127.0.0.1:9000
Connection: keep-alive
Accept: application/json
User-Agent: Chrome/34.0.1847.137 Safari/537.36
Accept-Encoding: gzip,deflate
Accept-Language: en-US,en;q=0.8,de;q=0.6
HTTP/1.1 201 Created
Vary: Accept-Encoding
Content-Type: application/json; charset=utf-8
ETag: "-32550834"
Content-Encoding: gzip
Date: Tue, 07 Apr 1980 00:00:00 GMT
Connection: keep-alive
Transfer-Encoding: chunked
{
"status": "ok"
}
Events
This endpoint will not send any events. Therefor you can not register for them.
/cdn/certificates/
Retrieve binary certificates.
certificateObject
Properties
name | description | type | format | unit(s) | value(s) |
---|---|---|---|---|---|
Resource level access (/cdn/certificates/)
GET
Note: Use a http GET request on /cdn/certificates/ to retrieve a list of available elements of type certificateObject
Subscribe to /cdn/certificates/ to receive updates for element creations or removals from the collection.
Request/response example
GET /cdn/certificates/ HTTP/1.1
Host: 127.0.0.1:9000
Connection: keep-alive
Accept: application/json
User-Agent: Chrome/34.0.1847.137 Safari/537.36
Accept-Encoding: gzip,deflate
Accept-Language: en-US,en;q=0.8,de;q=0.6
=>
HTTP/1.1 200 OK
Vary: Accept-Encoding
Content-Type: application/json; charset=utf-8
ETag: "-32550834"
Content-Encoding: gzip
Date: Tue, 07 Apr 1980 00:00:00 GMT
Connection: keep-alive
Transfer-Encoding: chunked
{
"status": "ok",
"data": [
{
"id": "3901a278-ba17-44d6-9aef-f7ca67c04840",
"name": "lorem ipsum",
"uri": "/cdn/certificates/3901a278-ba17-44d6-9aef-f7ca67c04840"
},
{
"id": "8901870-b526-11e3-a5e2-0800200c9a66",
"name": "dolor sit",
"uri": "/cdn/certificates/8901870-b526-11e3-a5e2-0800200c9a66"
}
]
}
Element level access (/cdn/certificates/:uuid)
GET
Note:
Use a http GET request on /cdn/certificates/:uuid to retrieve a particular certificateObject
Subscribe to /cdn/certificates/:uuid to receive updates on element level changes.
Request/response example
GET /cdn/certificates/3901a278-ba17-44d6-9aef-f7ca67c04840 HTTP/1.1
Host: 127.0.0.1:9000
Connection: keep-alive
Accept: application/json
User-Agent: Chrome/34.0.1847.137 Safari/537.36
Accept-Encoding: gzip,deflate
Accept-Language: en-US,en;q=0.8,de;q=0.6
HTTP/1.1 200 OK
Vary: Accept-Encoding
Content-Type: application/json; charset=utf-8
ETag: "-32550834"
Content-Encoding: gzip
Date: Tue, 07 Apr 1980 00:00:00 GMT
Connection: keep-alive
Transfer-Encoding: chunked
{
"status": "ok",
"data": [
{
"id": "3901a278-ba17-44d6-9aef-f7ca67c04840",
"name": "lorem ipsum",
"uri": "/cdn/certificates/3901a278-ba17-44d6-9aef-f7ca67c04840"
}
]
}
Events
This endpoint will not send any events. Therefor you can not register for them.