Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mamantoha committed Oct 29, 2023
1 parent 8f58a7b commit 1d16ee3
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,17 @@ client.you("Nvidia", "Linus Torvalds", accept_type: :text)
client.dosomething("Do", "work", "Ruby", accept_type: :text)
# => Do the fucking work! - Ruby
client.awesome("Everyone", accept_type: :json, i18n: "uk")
# => "{\"message\":\"Це, чорт забирай, класно. Усі \",\"subtitle\":\" undefined\"}"
```

Will respond to the following `accept_type` values:

* `:text` - Content will be returned as a plain string.
* `:json` - Content will be returned as a JSON object.
* `:html` - Content will be returned as an HTML page with a twitter bootstrap hero unit, containing the message and the subtitle.
* `:xml` - Content will be returned as a XML document.
- `:text` - Content will be returned as a plain string.
- `:json` - Content will be returned as a JSON object.
- `:html` - Content will be returned as an HTML page with a twitter bootstrap hero unit, containing the message and the subtitle.
- `:xml` - Content will be returned as a XML document.

## Development

Expand All @@ -64,4 +67,4 @@ crystal ./utils/generate_operations.cr

## Contributors

* [mamantoha](https://github.com/mamantoha) Anton Maminov - creator, maintainer
- [mamantoha](https://github.com/mamantoha) Anton Maminov - creator, maintainer

0 comments on commit 1d16ee3

Please sign in to comment.