Skip to content

LSCS's multipurpose lightweight Object Storage Service (OSS)

Notifications You must be signed in to change notification settings

dlsu-lscs/lscs-oss

Repository files navigation

LSCS Object Storage Service (OSS)

A lightweight drop-in Object Storage Service for storing images remotely from your main server.

Setup with the given .env.example file. Your CLIENT_SECRET_KEY must match your JWT token in your main server.

POST /upload

Post example:

{
  "type": "", // OPTIONAL, either "default" or "message". "message" is used for images used in DMs
}

NOTE: Add Bearer Token header with a JWT token from your main server backend.

Use form upload or however it is react to select an image.

Response example:

{
  "status": "success",
  "image": "<FULL_IMAGE_URL>",
  "thumbnail": "<THUMBNAIL_IMAGE_URL>"
}

The response links are direct links to the images.

GET /{image-id} | GET /{image-id}?type=thumbnail

Response: Direct link to image.

About

LSCS's multipurpose lightweight Object Storage Service (OSS)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published