API specification

for

asset_router

Spinview Asset Router

HTTP
GET
Get letsencrypt's authentication token (for use with its manual mode). Authentication token needs to be saved on a local HDD, see configuration for specifics.
Params
NameTypeDescription
keystringKey that was given by the letsencrypt tool
HTTP
GET
API specification. Web page or JSON specification of available routes (depending on accept header)
HTTP
GET
Test method, returns supplied input string
Params
NameTypeDescription
txtstringInput string
HTTP
GET
Test method, returns supplied input string
Query
NameTypeDescription
txtstringInput string
HTTP
GET
Current app status
HTTP
GET
Current app version
HTTP
GET
List all sites with versions
HTTP
PUT
Notify sites or versions might have changed. Triggers full background check.
HTTP
GET
Get particular site
Params
NameTypeDescription
siteIdint
HTTP
POST
Trigger regeneration of all handler routes
HTTP
GET
List current routes
HTTP
GET
Test method, returns supplied input string
Params
NameTypeDescription
txtstringInput string
HTTP
GET
Test method, returns supplied input string
Query
NameTypeDescription
txtstringInput string
HTTP
GET
Current app status
HTTP
GET
Current app version
HTTP
GET
Get image with key.
Query
NameTypeDescription
sizestringConvert to size. Eg or "250x250" or "300xnull"
backgroundstringImage background when resizing. RGBA. Eg. "0_0_0_0.5"
cropbooleanCrop image to provided size
embedbooleanEmbed image to provided size, using background
no_enlargementbooleanDo not enlarge if image is smaller than size dimensions
stretchbooleanDeform image to fit size
Params
NameTypeDescription
keystringImage key. You can add extension behind key to get a specific format. Eg. zziiIXrB2maJRgc3IfTjgPldWW1j9G.jpeg
HTTP
GET
Serve video based on a key
Params
NameTypeDescription
keystringVideo key. Eg. zziiIXrB2maJRgc3IfTjgPldWW1j9G
HTTP
GET
HTTP
GET
Serve document html template based on a key
Params
NameTypeDescription
keystringDocument key. Eg. zziiIXrB2maJRgc3IfTjgPldWW1j9G
HTTP
GET
Serve document based on a key
Params
NameTypeDescription
keystringDocument key. Eg. zziiIXrB2maJRgc3IfTjgPldWW1j9G