JeanMertz / I-heart-quotes

I ♥ k̶a̶b̶i̶s̶a̶ Quotes
1 stars 0 forks source link

Internal quotes CRUD #3

Open JeanMertz opened 12 years ago

JeanMertz commented 12 years ago

Quotes can be created internally through a simple CRUD interface. Simple HTTP Auth protection prevents unauthorized use. A public API is provided to request a random internal quote.

The internal quotes behave exactly the same way as external API's, in that the random quote method polls the internal quotes API and caches the quotes. This is to allow the quotes CRUD to be moved to a different server / environment in the future and to be consistent throughout the app on how quotes are handled.

Schema info

# Table name: internal_quotes
#
#  id                  :integer(11)    not null, primary key
#  quote               :text           not null
#  author              :string(255)
JeanMertz commented 12 years ago

Possibly construct CRUD interface as a Rails Engine to enhance modularity?