Skip to content

0xMukesh/Blahaj-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

20 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🦈 Blahaj API

An API for getting and posting random Blahaj images

πŸ‘¨β€πŸ’» Demo

Check out the website: Blahaj API

πŸ›£οΈ Available endpoints

  • /: The root route
  • /get: The route for getting random blahaj images
  • /post: The route for posting random blahaj images
  • /raw: The route for getting raw random blahaj images

πŸ€” How to post via the /post route ?

Blahaj API doesn't support posting via queries. To use the POST method you have to add body to the request. The body needs to have name and url path.

  • name : It's a short description of what's the image is about
  • url : It's the link of the image

Here's an example πŸ‘‡

πŸ‘‡ Prerequisites

Before starting working on this project, please make sure you have already installed the following tools:

πŸ› οΈ Installation Steps

  1. Fork the project

  2. Clone the project, by using the following command

    $ git clone https://github.com/Kira272921/Blahaj-API
  3. Navigate to the project directory cd Blahaj-API

  4. Install dependencies with npm install

  5. Create your own MongoDB database for testing

  6. Run npm start to start a local development environment

πŸ‘¨β€πŸ’» Contributing

All kinds of contributions are always welcomed. It is recommended to either tell the maintainers that you are working on a previously made issue or make a new issue and let the maintainers now that you are working on it.

πŸ€” What's next for Blahaj API ?

  • I'll be adding a route where you could get the raw random images of blahaj
  • Make a cool looking homepage