Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

mrzumo/ZumoCat-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZumoCat-backend - Created by sw1ndler


Todo:

- Add get request for images by tags
- Add an option for amount of images from /latest    

GET Routes

/random

Get a random cat from the database

{
    "title": "string",
    "description": "string",
    "tags": [
        "string"
    ],
    "image": "url",
}

/latest

Return the latest 30 uploaded images

{
    {
        "title": "string",
        "description": "string",
        "tags": [
            "string"
        ],
        "image": "url", 
    },
}

Post Routes

/upload

Upload an image to the server, example under /example/upload.js
Tags should be in json

{
    "headers": {
        "title": "string",
        "description": "string",
        "tags": ["string"],
    },
    "files": {
        "image": "image-data",
    }
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •