Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BPMN Storage Service

This project provides a minimal HTTP service for uploading, downloading, listing, and deleting BPMN files stored in MongoDB.

Features

  • POST /bpmn/create uploads a BPMN file using multipart/form-data, validates it as XML, and stores it in MongoDB.
  • POST /bpmn/get downloads a stored BPMN file when provided with its identifier.
  • POST /admin/bpmn/list lists stored files with pagination. Protected with HTTP basic authentication.
  • POST /admin/bpmn/delete removes a stored file. Also protected with basic authentication.
  • GET /admin/log tails recent service log lines and requires basic authentication. Use the optional n query parameter to control the number of lines.
  • OpenAPI specification available at docs/openapi.json.

Configuration

Environment variables:

  • MONGODB_URI (default mongodb://localhost:27017)
  • MONGODB_DB (default bpmn_service)
  • PORT (default 8080)
  • BASIC_AUTH_USERNAME and BASIC_AUTH_PASSWORD (both default to admin)
  • LOG_FILE_PATH (default service.log)

Running locally

Ensure MongoDB is available and then run:

MONGODB_URI="mongodb://localhost:27017" BASIC_AUTH_USERNAME="admin" BASIC_AUTH_PASSWORD="change-me" go run ./...

The service listens on the configured PORT.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages