Git Product home page Git Product logo

goquotes-api's Introduction

Go Quotes API

GO Quotes is a free, open source quotations API. It was built when I was getting started with GO lang. The sample database includes 500+ quotes. Live API Documentation

Server

Note : The api will not work as it was hosted under free tier at Heroku & it has been exhausted due to high traffic. So clone and host your version of API and test them ๐Ÿ™‚

Name URL Description
Production https://goquotes-api.herokuapp.com/api/v1/ Synced with the master branch of this repo

API Methods

Get a random quote(s)

Returns number of random quotes

Path

GET /random

Query Parameters

Param Type Description
count Int Number of quotes to fetch

Get random quote(s) filtered by given type

Returns number of random quotes filtered by type

Path

GET /random/:count

Query Parameters

Param Type Description
count Int Number of quotes to fetch
type String Filter quotes by type (author/tag)
val String Filter quotes by value of type

Get all quotes

Returns every quotes available in the server

Path

GET /all/quotes

Get all authors

Returns every authors available in the server

Path

GET /all/authors

Get all tags

Returns every tags available in the server

Path

GET /all/tags

Get all data quotes by given type

Returns all quotes filtered by given type and value

Path

GET /all

Query Parameters

Param Type Description
type String Filter quotes by type (author/tag)
val String Filter quotes by value of type

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.