Update rest.md

This commit is contained in:
Aşkın Gedik 2015-12-27 20:20:21 +02:00
parent 5b5a6008f7
commit 94ed386851

View file

@ -6,23 +6,23 @@ title: Restful Web Services
You can handle HTTP methods as easy as writing method names and the route with a code block. Kemal will handle all the hard work.
```ruby
get "/" do
.. show something ..
end
get "/" do
.. show something ..
end
post "/" do
.. create something ..
end
post "/" do
.. create something ..
end
put "/" do
.. replace something ..
end
put "/" do
.. replace something ..
end
patch "/" do
.. modify something ..
end
patch "/" do
.. modify something ..
end
delete "/" do
.. annihilate something ..
end
delete "/" do
.. annihilate something ..
end
```