Dog API provides dog facts as a service.
Congratulations! Dog Facts was successfully installed in your Slack team.
You will now receive fun semi-irregular facts about dogs /dogfact
from any channel.
We're sorry! Dog Facts was not installed in your Slack team.
Make sure to accept the confirmation dialog in Slack or contact the administrator for further support.
This is the Dog API and it provides dog facts as a service dogdog
This will enable two things:
/dogfact
) to retrieve a single fact on any channel.If installation was successful you'll receive a welcome message :)
Dog Facts is just for fun. The only data retained by Dog Facts is your team webhook url (which is required to post Dog Facts messages to your Slack). Otherwise, no data is kept.
For questions or support, please email el@kinduff.com
or contact directly through Twitter http://twitter.com/kinduff
Live endpoint: http://dog-api.kinduff.com
Path | Description | Parameters |
---|---|---|
/api/facts |
Returns an object with dog facts | ?number=5 |
First make sure you have the following dependencies installed.
Go ahead and clone this repository.
git clone git@github.com:kinduff/dog-api.git
Then install the dependencies.
bundle install
After that you'll need to setup your database, run the following command to run migrations.
rake db:migrate
And finally, fill out your database with the latest dog facts included in the db/seeds.rb
file.
rake db:seed
Run the application by running the following command.
rake server
Or just rake
by it self. The application should now be running in http://localhost:4567
.
There's a Cat API that returns cat facts. I like cats but I like dogs more. Equilibrium must exists.
Lot's of places, I'll list them tomorrow, mom.