mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Create rest.md
This commit is contained in:
parent
da4e38ab0f
commit
4465ed9965
1 changed files with 25 additions and 0 deletions
25
docs/rest.md
Normal file
25
docs/rest.md
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
# 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.
|
||||||
|
|
||||||
|
```
|
||||||
|
get "/" do
|
||||||
|
.. show something ..
|
||||||
|
end
|
||||||
|
|
||||||
|
post "/" do
|
||||||
|
.. create something ..
|
||||||
|
end
|
||||||
|
|
||||||
|
put "/" do
|
||||||
|
.. replace something ..
|
||||||
|
end
|
||||||
|
|
||||||
|
patch "/" do
|
||||||
|
.. modify something ..
|
||||||
|
end
|
||||||
|
|
||||||
|
delete "/" do
|
||||||
|
.. annihilate something ..
|
||||||
|
end
|
||||||
|
```
|
Loading…
Add table
Add a link
Reference in a new issue