server implementation for poster generation
This commit is contained in:
9
server/bruno/bruno.json
Normal file
9
server/bruno/bruno.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"version": "1",
|
||||
"name": "movie-posters",
|
||||
"type": "collection",
|
||||
"ignore": [
|
||||
"node_modules",
|
||||
".git"
|
||||
]
|
||||
}
|
3
server/bruno/environments/dev.bru
Normal file
3
server/bruno/environments/dev.bru
Normal file
@@ -0,0 +1,3 @@
|
||||
vars {
|
||||
base_uri: http://localhost:3000
|
||||
}
|
3
server/bruno/environments/live.bru
Normal file
3
server/bruno/environments/live.bru
Normal file
@@ -0,0 +1,3 @@
|
||||
vars {
|
||||
base_uri: https://movie-posters.mars3142.dev
|
||||
}
|
26
server/bruno/posters.bru
Normal file
26
server/bruno/posters.bru
Normal file
@@ -0,0 +1,26 @@
|
||||
meta {
|
||||
name: /posters
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{base_uri}}/poster
|
||||
body: json
|
||||
auth: none
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"width": 480,
|
||||
"height": 320,
|
||||
"count": 4,
|
||||
"orientation": "horizontal",
|
||||
"shuffle": true,
|
||||
"backgroundColor": "#000",
|
||||
"format": "png",
|
||||
"language": "de-DE",
|
||||
"output": "lvgl"
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user