Skip to content

Commit

Permalink
Update API pages with v0.26.3
Browse files Browse the repository at this point in the history
  • Loading branch information
netbirddev committed Mar 12, 2024
1 parent da6d580 commit 126bc96
Show file tree
Hide file tree
Showing 13 changed files with 338 additions and 5,153 deletions.
412 changes: 22 additions & 390 deletions src/pages/ipa/resources/accounts.mdx

Large diffs are not rendered by default.

635 changes: 42 additions & 593 deletions src/pages/ipa/resources/dns.mdx

Large diffs are not rendered by default.

45 changes: 8 additions & 37 deletions src/pages/ipa/resources/events.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -160,47 +160,18 @@ echo $response;
<CodeGroup title="Response">
```json {{ title: 'Example' }}
[
{
"id": 10,
"timestamp": "2023-05-05T10:04:37.473542Z",
"activity": "Route created",
"activity_code": "route.add",
"initiator_id": "google-oauth2|123456789012345678901",
"initiator_name": "John Doe",
"initiator_email": "[email protected]",
"target_id": "chad9d86lnnc59g18ou0",
"meta": {
"name": "my route",
"network_range": "10.64.0.0/24",
"peer_id": "chacbco6lnnbn6cg5s91"
}
{
"items": {
"$ref": "#/components/schemas/Event"
}
]
}
```
```json {{ title: 'Schema' }}
[
{
"id": "string",
"timestamp": "string",
"activity": "string",
"activity_code": "string",
"initiator_id": "string",
"initiator_name": "string",
"initiator_email": "string",
"target_id": "string",
"meta": {
"description": "The metadata of the event",
"type": "object",
"additionalProperties": "string",
"example": {
"name": "my route",
"network_range": "10.64.0.0/24",
"peer_id": "chacbco6lnnbn6cg5s91"
}
}
{
"items": {
"$ref": "#/components/schemas/Event"
}
]
}
```
</CodeGroup>
Expand Down
24 changes: 12 additions & 12 deletions src/pages/ipa/resources/geo-locations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export const title = 'Geo Locations'



## List all country codes {{ tag: 'GET' , label: '/api/locations/countries' }}
## List all country codes {{ tag: 'GET' , label: '/api/locations/countries' }}

<Row>
<Col>
Expand Down Expand Up @@ -160,14 +160,16 @@ echo $response;
<CodeGroup title="Response">
```json {{ title: 'Example' }}
[
"DE"
]
{
"items": "DE"
}
```
```json {{ title: 'Schema' }}
[
"string"
]
{
"items": {
"example": "DE"
}
}
```
</CodeGroup>
Expand All @@ -178,7 +180,7 @@ echo $response;
---
## List all city names by country {{ tag: 'GET' , label: '/api/locations/countries/{country}/cities' }}
## List all city names by country {{ tag: 'GET' , label: '/api/locations/countries/{country}/cities' }}
<Row>
<Col>
Expand Down Expand Up @@ -345,14 +347,12 @@ echo $response;
<CodeGroup title="Response">
```json {{ title: 'Example' }}
{
"geoname_id": 2950158,
"city_name": "Berlin"
"$ref": "#/components/schemas/City"
}
```
```json {{ title: 'Schema' }}
{
"geoname_id": "integer",
"city_name": "string"
"$ref": "#/components/schemas/City"
}
```
</CodeGroup>
Expand Down
Loading

0 comments on commit 126bc96

Please sign in to comment.