book.json
{
"plugins": ["http-verb"]
}then run
$ gitbook installbook.json
"pluginsConfig": {
"http-verb":{
"styles": {
"get": {
"background": "#fff"
}
},
}
}| Option | Description |
|---|---|
| styles {object} default: null |
an object map of styles for each http verb. see example above on how to define. |
{% httpverb %} /api/users/`id` {% endhttpverb %}
httpverb takes an optional named/unnamed argument:
verb(string): the http verb to display . eg.get,putand other http verbs. Default:get
examples:
{% httpverb "post" %} /api/users/`id` {% endhttpverb %}
{% httpverb verb="patch" %} /api/users/`id` {% endhttpverb %}
Pull requests are welcome
