hvergelmir/4 backoffice.mfe.image 4.1.2

This Self-contained System provides a web component for backend management of media (images/videos) as a module federation, along with the required frontend API.

#svelte5 #express #typescript #self-contained-systems #module-federation #web-component #docker #sbom #SLSA #signed-image

Endpoints

method endpoint authorization execution tests contents
GET /remoteEntry.js none sync none

This route provides a Web Component of the backoffice application, exposed as a remote module for integration via Module Federation.

How to include in host application

// webpack.config let remotes = { ModuleImageBackoffice : 'ModuleImageBackoffice@https://mfe-image.neolith.cloud/remoteEntry.js' } import('ModuleImageBackoffice/AppImage').then(() => { // The web component is now defined and can be used in the DOM });

Usage

<mfe-image name="microfrontend-image-backoffice"></mfe-image>

Example

import('ModuleImageBackoffice/AppImage').then(() => { const el = document.createElement('mfe-image'); el.setAttribute('name', 'microfrontend-image-backoffice'); document.body.appendChild(el); });
GET /healthcheck none sync Used internally for the healthcheck in docker compose.
Returns uptime of service.
GET /websocket JWT sync
POST /image JWT sync
GET, PUT, DELETE /image/:uuid JWT sync
GET /info JWT sync
GET /tree/:uuid JWT sync
POST /exif JWT sync Accepts an image file with name="file" and parses the EXIF header it contains. It also makes corrections regarding naming of fields and dates.
GET, POST /geocode JWT sync
POST /translate JWT sync
PATCH /publish JWT sync
PATCH /unpublish/:uuid JWT sync
DELETE /thumbnailcache/:uuid JWT sync

Corresponding documentation for both interfaces can be found behind the following links:

REST API
Swagger