This API example demonstrates how to name a resource and its actions, to give the reader a better idea about what the resource is used for.
OK, My Message
probably isn't the best name for our resource but it will do
for now. Note the URI /message
is enclosed in square brackets.
OK, My Message
probably isn't the best name for our resource but it will do
for now. Note the URI /message
is enclosed in square brackets.
Now this is informative! No extra explanation needed here. This action clearly
retrieves the message.
Headers | |
---|---|
Content-Type | text/plain |
text/plain
Hello World!
OK, My Message
probably isn't the best name for our resource but it will do
for now. Note the URI /message
is enclosed in square brackets.
Update a message
- nice and simple naming is the best way to go.
Headers | |
---|---|
Content-Type | text/plain |
text/plain
All your base are belong to us.