Bootstrap copied BFF and local accounts with public Sendico contracts (#34)

This commit is contained in:
Stephan D committed 2026-09-12 13:37:48 +02:00
1 parent 67dc5b5b1e
commit 7062672a87
556 files changed
+42291 -777

No files matched your search

@@ -0,0 +1,24 @@
components:
schemas:
ApiError:
description: Standard API error envelope with optional debugging details.
type: object
additionalProperties: false
required:
- code
- error
- source
properties:
code:
description: Application-specific numeric error code.
type: integer
format: int32
error:
description: Human-readable error summary.
type: string
source:
description: Component or subsystem that produced the error.
type: string
details:
description: Optional detailed message providing additional failure context.
type: string
@@ -0,0 +1,85 @@
components:
responses:
Ok:
description: Successful response
content:
application/json:
schema:
$ref: ./response.yaml#/components/schemas/BaseResponse
Created:
description: Resource created
content:
application/json:
schema:
$ref: ./response.yaml#/components/schemas/BaseResponse
Accepted:
description: Request accepted for processing
content:
application/json:
schema:
$ref: ./response.yaml#/components/schemas/BaseResponse
BadRequest:
description: Bad request payload or query/path parameter
content:
application/json:
schema:
$ref: ./response.yaml#/components/schemas/ErrorResponse
Unauthorized:
description: Unauthorized
content:
application/json:
schema:
$ref: ./response.yaml#/components/schemas/ErrorResponse
Forbidden:
description: Forbidden
content:
application/json:
schema:
$ref: ./response.yaml#/components/schemas/ErrorResponse
NotFound:
description: Resource not found
content:
application/json:
schema:
$ref: ./response.yaml#/components/schemas/ErrorResponse
Gone:
description: Resource is no longer available
content:
application/json:
schema:
$ref: ./response.yaml#/components/schemas/ErrorResponse
Conflict:
description: Conflict
content:
application/json:
schema:
$ref: ./response.yaml#/components/schemas/ErrorResponse
TooManyRequests:
description: Too many requests
content:
application/json:
schema:
$ref: ./response.yaml#/components/schemas/ErrorResponse
ServiceUnavailable:
description: Service unavailable
content:
application/json:
schema:
$ref: ./response.yaml#/components/schemas/ErrorResponse
InternalServerError:
description: Internal server error
content:
application/json:
schema:
$ref: ./response.yaml#/components/schemas/ErrorResponse
@@ -0,0 +1,47 @@
components:
schemas:
BaseResponse:
type: object
additionalProperties: false
required:
- status
- data
properties:
status:
$ref: ./status.yaml#/components/schemas/ApiStatus
data:
description: Payload for success or error responses.
ErrorResponse:
allOf:
- $ref: ./response.yaml#/components/schemas/BaseResponse
- type: object
properties:
status:
type: string
enum:
- error
data:
$ref: ./error.yaml#/components/schemas/ApiError
SuccessResultData:
type: object
additionalProperties: false
required:
- result
properties:
result:
type: boolean
SuccessResultResponse:
allOf:
- $ref: ./response.yaml#/components/schemas/BaseResponse
- type: object
properties:
status:
type: string
enum:
- success
- processed
data:
$ref: ./response.yaml#/components/schemas/SuccessResultData
@@ -0,0 +1,10 @@
components:
schemas:
ApiStatus:
type: string
description: Unified response status used by backend wrappers.
enum:
- success
- processed
- error
- request