Hero: een gewijzigd focuspunt geldt pas bij het opslaan van de hero (Bryan); het focus-venster houdt de wijziging lokaal
Het eindpunt PUT /hero/images/{id}/focus is vervallen; de focus gaat mee in de opslag (imageFocus) en de varianten worden dan in nieuwe bestanden opnieuw gesneden.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
+45
-91
@@ -678,37 +678,6 @@
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"HeroFocusRequest": {
|
||||
"properties": {
|
||||
"focus": {
|
||||
"$ref": "#/components/schemas/FocusDto"
|
||||
},
|
||||
"tall": {
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "null"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/FocusDto"
|
||||
}
|
||||
]
|
||||
},
|
||||
"wide": {
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "null"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/FocusDto"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"focus"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"HeroImageDto": {
|
||||
"properties": {
|
||||
"focus": {
|
||||
@@ -775,6 +744,42 @@
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"HeroImageFocusRequest": {
|
||||
"properties": {
|
||||
"focus": {
|
||||
"$ref": "#/components/schemas/FocusDto"
|
||||
},
|
||||
"imageId": {
|
||||
"format": "uuid",
|
||||
"type": "string"
|
||||
},
|
||||
"tall": {
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "null"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/FocusDto"
|
||||
}
|
||||
]
|
||||
},
|
||||
"wide": {
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "null"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/FocusDto"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"imageId",
|
||||
"focus"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"HeroSaveRequest": {
|
||||
"properties": {
|
||||
"buttons": {
|
||||
@@ -799,6 +804,15 @@
|
||||
"string"
|
||||
]
|
||||
},
|
||||
"imageFocus": {
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/HeroImageFocusRequest"
|
||||
},
|
||||
"type": [
|
||||
"null",
|
||||
"array"
|
||||
]
|
||||
},
|
||||
"isActive": {
|
||||
"type": "boolean"
|
||||
},
|
||||
@@ -3045,66 +3059,6 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/api/v1/hero/images/{id}/focus": {
|
||||
"put": {
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "id",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"format": "uuid",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/*+json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HeroFocusRequest"
|
||||
}
|
||||
},
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HeroFocusRequest"
|
||||
}
|
||||
},
|
||||
"text/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HeroFocusRequest"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": true
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HeroImageDto"
|
||||
}
|
||||
},
|
||||
"text/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HeroImageDto"
|
||||
}
|
||||
},
|
||||
"text/plain": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HeroImageDto"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "OK"
|
||||
}
|
||||
},
|
||||
"tags": [
|
||||
"HeroImages"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/api/v1/offerings": {
|
||||
"get": {
|
||||
"responses": {
|
||||
|
||||
Reference in New Issue
Block a user