Elixir – Dynamo + REST API (MethodOverride)

A note about the DELETE/PUT methods. HTML form does not support PUT/DELETE of HTTP/REST verbs, and Rails/Sinatra uses Rack::MethodOverride middleware to override the method to the one in “_method” parameter.

Though the Dynamo doesn’t provide this overriding feature, it has Filters framework to provide middleware-like service chain. A simple filter logic to rewrite the conn.method as follows worked nicely.


Posted on September 21, 2013, in Elixir, Web. Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: