Vatrina.api is a bite-sized image hosting server written in Express, which stores images as files on the server's disk, and produces thumbnails from uploaded images upon receiving. When uploading is done, the app sends JSON back with all needed info like metadata, photo's link, photo's thumbnail link, and more.
To get the server up and running, open up a terminal and make sure the current working directory is the root of the Vatrina.api folder, then install all the dependencies by typing:
npm install
and then type the next command to start the server
npm start
or
npm run start
These are endpoints that currently available for you to use.
To retrieve all available photos.
To retrieve a specific photo, id here is the file name with extension, for example:
Upload a single photo at a time, bulk uploading isn't available yet.
Make sure to use Form Data as the body type and include photo as Key, with a file as Value
To retrieve all available thumbnails.