Skip to content

yuriybabenko/demo_camunda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

This is a Python application utilizing the FastAPI framework, Python modules, and Python's built-in SQLite database engine.

Application can be accessed at http://127.0.0.0:8000/, which will show a basic UI to interact with the API.

Setup

  1. Install Docker and Docker compose. Ensure Docker daemon is running.
  2. Using a terminal of your choice, change directory to demo_camunda from the archive: cd demo_camunda.
  3. Run docker-compose up -d.
  4. In your web browser, access the application at http://127.0.0.1:8000.

API

There are two API paths that accept requests:

GET /image/{source}/{quantity} - Will query an external image API for the specified number of images, save them locally, and return a JSON object with local file paths to the saved images.

  • source - Determines which image API to query. Can be one of:
    • place_bear
    • place_dog
    • random_duck
    • random_fox - default
  • quantity - an integer from 1 to 5. Minimum & maximum values are automatically enforced.

GET /last-image/ - Will return a JSON object with the local file path to the latest image. If no image is available, an empty JSON object is returned.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published