Skip to content

maciejlewandowskii/SuitsQuotes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Suits Quotes

API

Fast, easy and free quotes from the Suits TV Show.

GitHub top language Made by Repository size GitHub last commit Repository issues

About the project   |    Technologies   |    Getting started   |    How to contribute   |    License

Working Example:

https://suitsquotes.000webhostapp.com/api/v1/quotes

👨🏻‍💻 About the project

This simple project allow you to get Quote from TV Series "Suits"

🚀 Technologies

Technologies that I used to develop this api

🌱 API Endpoints

This API has 2 Endpoints:

/api/v1/quotes

or

/api/v1/quotes/img

this Endpoint return a 1 quote but as image, you can also filter results.

You can search in Quotes by adding parameters to query:

/api/v1/quotes?season=1&episode=1

Or search by author:

/api/v1/quotes?author=Mike%20Ross

also you can search by quote:

/api/v1/quotes?quote=I%20am%20a%20man

You can also set a limit (default is 10)

/api/v1/quotes?limit=2

And if you want to get a random quote:

/api/v1/quotes?random=true

👀 Requirements

I recommend use Apache

💻 Getting started

You can use ready example on this address

or

Clone the project and access the folder

$ git clone https://github.com/maciejlewandowskii/SuitsQuotes.git && cd SuitsQuotes

Follow the steps below

# Install Apache Web Server
$ sudo apt-get install apache2

# Install PHP 8.0 on server
$ sudo apt install software-properties-common
$ sudo add-apt-repository ppa:ondrej/php
$ sudo apt update
$ sudo apt install php8.0 libapache2-mod-php8.0

# Restart Apache Web Server
$ sudo systemctl restart apache2

# Copy Files to /var/www/html
$ sudo copy -r * /var/www/html

# Well done, project is ready!
# Just open browser and put localhost/api/v1/quotes?limit=1&order=random

🤔 How to contribute

Make a fork of this repository

# Fork using GitHub official command line
# If you don't have the GitHub CLI, use the web site to do that.

$ gh repo fork maciejlewandowskii/SuitsQuotes

Follow the steps below

# Clone your fork
$ git clone your-fork-url && cd SuitsQuotes

# Create a branch with your feature
$ git checkout -b my-feature

# Make the commit with your changes
$ git commit -m 'feat: My new feature'

# Send the code to your remote branch
$ git push origin my-feature

After your pull request is merged, you can delete your branch

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.


Made 💜  by Maciej Lewandowski 👋  See my linkedin

About

This simple project allow you to get Quote from TV Series "Suits"

Resources

License

Stars

Watchers

Forks

Contributors

Languages