Coder Social home page Coder Social logo

tronalddump-io / tronald-app Goto Github PK

View Code? Open in Web Editor NEW
72.0 2.0 4.0 2.3 MB

🇺🇸 Api & web archive for the dumbest things Donald Trump has ever said.

Home Page: https://www.tronalddump.io

License: GNU General Public License v3.0

HTML 18.92% Dockerfile 0.75% Kotlin 44.55% Groovy 16.68% PLpgSQL 3.94% CSS 11.64% Java 3.54%
donald-trump public-api api funny potus tronald-dump donaldtrump

tronald-app's Introduction

CircleCI Donate to this project using patreon.com

TRONALDDUMP.IO

Api & web archive for the dumbest things Donald Trump has ever said.

Usage

# Retrieve a random quote
$ curl --request GET \
       --url 'https://api.tronalddump.io/random/quote' \
       --header 'Accept: application/hal+json'

Example quote response:

{
  "appeared_at": "2015-07-28T16:33:50.000Z",
  "created_at": "2019-12-13T16:59:09.774Z",
  "quote_id": "FA4GQR8WSWqy-96ZWa6aKQ",
  "tags": [
    "President Obama"
  ],
  "updated_at": "2019-12-13T17:26:27.045Z",
  "value": "My Fox News int. with Sean Hannity on Obama being all talk & no action & making America Great Again! http://t.co/RqP6MNnR7h",
  "_embedded": {
    "author": [
      {
        "author_id": "wVE8Y7BoRKCBkxs1JkqAvw",
        "bio": null,
        "created_at": "2019-12-13T16:43:24.728Z",
        "name": "Donald Trump",
        "slug": "donald-trump",
        "updated_at": "2019-12-13T16:43:24.728Z",
        "_links": {
          "self": {
            "href": "https://api.tronalddump.io/author/wVE8Y7BoRKCBkxs1JkqAvw"
          }
        }
      }
    ],
    "source": [
      {
        "created_at": "2019-12-13T16:53:40.290Z",
        "filename": null,
        "quote_source_id": "fPp2is_VRE-XVQlsMfzuMw",
        "remarks": null,
        "updated_at": "2019-12-13T16:53:40.290Z",
        "url": "https://twitter.com/realDonaldTrump/status/626068052891836416",
        "_links": {
          "self": {
            "href": "https://api.tronalddump.io/quote-source/fPp2is_VRE-XVQlsMfzuMw"
          }
        }
      }
    ]
  },
  "_links": {
    "self": {
      "href": "https://api.tronalddump.io/quote/FA4GQR8WSWqy-96ZWa6aKQ"
    }
  }
}

The application supports HAL through JSON, a simple format for a consistent and easy way to hyperlink between resources which improves discoverability. Watch out for the _links property within the response body and follow the embedded links.

For more examples check the OpenApi documentation and have a look at the [Postman collection](./postman/io.tronalddump.postman_collection.json and read the docs.

License

This distribution is covered by the GNU GENERAL PUBLIC LICENSE, Version 3, 29 June 2007.

Support & Contact

Having trouble with this repository? Check out the documentation at the repository's site or contact [email protected] and we’ll help you sort it out.

Happy Coding

✌️

tronald-app's People

Contributors

matchilling avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

tronald-app's Issues

Fix author typo in json formatter

Thx to @nickkohrn for spotting that one.

{
    "appeared_at": "2016-05-09T16:56:36",
    "created_at": "2016-11-20T01:35:43.157523",
    "quote_id": "VHKwB8crTte7--FqtIxq9A",
    "tags": [
        "Hillary Clinton"
    ],
    "updated_at": "2016-11-20T01:35:43.157523",
    "value": "Crooked Hillary Clinton says that she got more primary votes than Donald Trump. But I had 17 people to beat—she had one!",
    "_links": {
        "self": {
            "href": "/quote/VHKwB8crTte7--FqtIxq9A"
        }
    },
    "_embedded": {
        "autor": [{
            "created_at": "2016-11-14T01:14:02.096776",
            "bio": null,
            "author_id": "wVE8Y7BoRKCBkxs1JkqAvw",
            "name": "Donald Trump",
            "slug": "donald-trump",
            "updated_at": "2016-11-14T01:14:02.096776"
        }],
        "source": [{
            "created_at": "2016-11-20T01:35:41.652179",
            "filename": null,
            "quote_source_id": "WMqsW5mDQrqSbWzqiTBB_w",
            "remarks": null,
            "updated_at": "2016-11-20T01:35:41.652179",
            "url": "https://twitter.com/realDonaldTrump/status/729716712124362754"
        }]
    }
}

Add auth0 authentication

As a user I want to be able to authenticate with the app using a bunch of social media logins.

Allow case insensitive search

The website allows to search but only finds exact matches. Some simple stemming would be very useful to make searchers life easier.

Retrieve quotes by a given tag

It's me again. Thanks for fixing the last issue for the get quotes by tag option, but now there's another issue.
When requesting a quote by a certain tag (e.g. Hillary Clinton) all you get back is a link to the site for the quote, I don't know if this was intended or it's supposed to return a quote, but either way, it isn't what the docs say should be returned. Getting nothing but a link back to the home site kind of defeats the purpose of the API (for my purposes anyway).
Thanks.
PS: feature idea: no case sensitivity?
image

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.