add examples to response

This commit is contained in:
Pascal Fischer
2023-05-05 18:00:13 +02:00
parent 2b65de30e4
commit adf57d5294
16 changed files with 1174 additions and 180 deletions

View File

@@ -173,7 +173,25 @@ echo $response;
<CodeGroup title="Response">
```json {{ title: '200' }}
```json {{ title: 'Example' }}
[
{
"id": "chacdk86lnnboviihd7g",
"network_type": "IPv4",
"description": "My first route",
"network_id": "Route 1",
"enabled": true,
"peer": "chacbco6lnnbn6cg5s91",
"network": "10.64.0.0/24",
"metric": 9999,
"masquerade": true,
"groups": [
"chacdk86lnnboviihd70"
]
}
]
```
```json {{ title: 'Schema' }}
[
{
"id": "string",
@@ -521,7 +539,23 @@ echo $response;
<CodeGroup title="Response">
```json {{ title: '200' }}
```json {{ title: 'Example' }}
{
"id": "chacdk86lnnboviihd7g",
"network_type": "IPv4",
"description": "My first route",
"network_id": "Route 1",
"enabled": true,
"peer": "chacbco6lnnbn6cg5s91",
"network": "10.64.0.0/24",
"metric": 9999,
"masquerade": true,
"groups": [
"chacdk86lnnboviihd70"
]
}
```
```json {{ title: 'Schema' }}
{
"id": "string",
"network_type": "string",
@@ -724,7 +758,23 @@ echo $response;
<CodeGroup title="Response">
```json {{ title: '200' }}
```json {{ title: 'Example' }}
{
"id": "chacdk86lnnboviihd7g",
"network_type": "IPv4",
"description": "My first route",
"network_id": "Route 1",
"enabled": true,
"peer": "chacbco6lnnbn6cg5s91",
"network": "10.64.0.0/24",
"metric": 9999,
"masquerade": true,
"groups": [
"chacdk86lnnboviihd70"
]
}
```
```json {{ title: 'Schema' }}
{
"id": "string",
"network_type": "string",
@@ -1078,7 +1128,23 @@ echo $response;
<CodeGroup title="Response">
```json {{ title: '200' }}
```json {{ title: 'Example' }}
{
"id": "chacdk86lnnboviihd7g",
"network_type": "IPv4",
"description": "My first route",
"network_id": "Route 1",
"enabled": true,
"peer": "chacbco6lnnbn6cg5s91",
"network": "10.64.0.0/24",
"metric": 9999,
"masquerade": true,
"groups": [
"chacdk86lnnboviihd70"
]
}
```
```json {{ title: 'Schema' }}
{
"id": "string",
"network_type": "string",