Fast, easy and free quotes from the Suits TV Show.
About the project | Technologies | Getting started | How to contribute | License
This simple project allow you to get Quote from TV Series "Suits"
Technologies that I used to develop this api
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
- PHP > 8
- Any Web Server
I recommend use Apache
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 SuitsQuotesFollow 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=randomMake 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/SuitsQuotesFollow 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-featureAfter your pull request is merged, you can delete your branch
This project is licensed under the MIT License - see the LICENSE file for details.
Made 💜 by Maciej Lewandowski 👋 See my linkedin