Skip to content

NagisaLynn/programming-quotes-api

 
 

Repository files navigation

Programming Quotes API

Programming Quotes API for open source projects.

Docs: programming-quotes-api.herokuapp.com

Convention: The names of the authors are as on Wikipedia.

I am open to your feature requests. Also, you can send me your client apps if you want to share it with the world :)

API Documentation

GET /quotes (get all quotes)

GET /quotes/random (get random quote)

GET /quotes/5a6ce86f2af929789500e824 (get quote by id)

GET /quotes/author/Edsger W. Dijkstra (get quote by author)

You can also POST, PUT, PATCH and DELETE. See API documentation for more.

Author info

You can use Wikipedia API for author's image and info.

To get author's image:

https://en.wikipedia.org/w/api.php?action=query&titles=Fred%20Brooks&prop=pageimages&format=json&pithumbsize=250

To get author info:

https://en.wikipedia.org/w/api.php?action=query&titles=Fred%20Brooks&prop=extracts&format=json&exintro=1

Note that you can change titles, pithumbsize and other params. The %20 character (as in Fred%20Brooks) is for empty space.

Development

Start the project locally:

dotnet build
dotnet watch run

Listening on: http://localhost:5000

Deploy:

heroku login
heroku git:remote -a programming-quotes-api
heroku buildpacks:set https://github.com/jincod/dotnetcore-buildpack

git push heroku master

Tutorials

TODO

  • add User patch

About

Programming Quotes API for open source projects.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%