mirror of
https://github.com/caddyserver/website.git
synced 2025-04-22 13:06:16 -04:00
docs: Improve dark theme warning aside (#12)
Also wrapped @id with backticks to make it look a bit nicer
This commit is contained in:
parent
cb9a30b124
commit
d1997764cf
2 changed files with 15 additions and 3 deletions
|
@ -35,7 +35,7 @@ To get started with the API, try our [API tutorial](/docs/api-tutorial) or, if y
|
|||
- **[DELETE /config/[path]](#delete-configpath)**
|
||||
Deletes the value at the named path
|
||||
|
||||
- **[Using @id in JSON](#using-id-in-json)**
|
||||
- **[Using `@id` in JSON](#using-id-in-json)**
|
||||
Easily traverse into the config structure
|
||||
|
||||
|
||||
|
@ -194,11 +194,11 @@ To stop only one of your HTTP servers:
|
|||
<pre><code class="cmd bash">curl -X DELETE "http://localhost:2019/config/apps/http/servers/myserver"</code></pre>
|
||||
|
||||
|
||||
## Using @id in JSON
|
||||
## Using `@id` in JSON
|
||||
|
||||
You can embed IDs in your JSON document for easier direct access to those parts of the JSON.
|
||||
|
||||
Simply add a field called "@id" to an object and give it a unique name. For example, if you had a reverse proxy handler that you wanted to access frequently:
|
||||
Simply add a field called `"@id"` to an object and give it a unique name. For example, if you had a reverse proxy handler that you wanted to access frequently:
|
||||
|
||||
```json
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue