-
Common requirements
- Are they atomic?
- What kind of operations are supported?
-
Existing approaches
- Google storage
- Multipart/mixed content-type
- Google storage
-
POST /batch
-
Idea is to have a DSL/structured file that will describe your API
-
Question: is there a repo where people share their Blueprint schemas so we can see them?
- Not right now. There are definitely plans to make it really open
- Some people are already sharing their blueprints on GH
-
There are no other ways to collaborate on API design
Proposed/ran by Andreas Schmidt, Nokia
Based off his design around the Nokia Places API
- Picked JSON, no support for XML
- Added ?accept=application/json to the URL in the browser for a raw response
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source "https://rubygems.org" | |
gem "pg" | |
gem "sqlite3" | |
unless version = ENV["AR"] | |
abort("specify ActiveRecord version with AR. eg: AR=2 bundle install") | |
else | |
gem "activerecord", "~> #{version}", require: "active_record" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Faraday | |
class Adapter | |
class NetHttp | |
def ssl_verify_mode(ssl) | |
OpenSSL::SSL::VERIFY_NONE | |
end | |
end | |
end | |
end |
-
Install any of the Mongo add-ons available at http://addons.heroku.com
-
Vendor the Mongo driver with your application. You can download it here:
https://github.com/wuputah/heroku-libraries/raw/master/php/mongo/mongo.so
Add it to a folder like "ext".
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ruby's `retry` with steroids: | |
# | |
# - retry up to 5 times without waiting between them and retrying after any exception | |
# | |
# retry_upto(5) do ... end | |
# | |
# - retry up to 5 times, waiting 2 seconds between retries and retrying after any exception | |
# | |
# retry_upto(5, :wait => 2) do ... end | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hi Pedro, | |
Just a friendly reminder (since it's your first check due) that your rent payment was due on August 1st, and today is the last day to pay and not to get a late fee. | |
Thanks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A few people asked about my issue with Rails 3 so here's the summary: | |
* Overriding to_json doesn't work anymore - render :json => User.all | |
seems to be ignoring any options defined in there. | |
* So I google around, there's a great explanation behind that, cool. | |
Lets move on and define as_json... | |
* Only it doesn't work if you try to call super with :only, :except, | |
or any of those options. Rails kept rendering all attributes. |