Skip to content

Commit 94a6853

Browse files
use small letters for the api badges (#297)
1 parent 42ef357 commit 94a6853

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

generator/templates/ApiTemplate.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export const title = '<%- tag %>'
44
55
<% operations.forEach(function(operation){ %>
66
7-
## <%- operation.summary %> <% if(operation.deprecated) { %> <Badge status="warning" text="Deprecated" /> <% } %><% if(operation["x-cloud-only"]) { %> <Badge status="cloud-only" text="Cloud-Only" hoverText="This feature is only available in the cloud version of NetBird." /> <% } %><% if(operation["x-experimental"]) { %> <Badge status="experimental" text="Experimental" hoverText="This feature is experimental. The endpoint will likely change and does not guarantee backwards compatibility." /> <% } %> {{ tag: '<%- operation.operation.toUpperCase() %>' , label: '<%- operation.path %>' }}
7+
## <%- operation.summary %> <% if(operation.deprecated) { %> <Badge status="warning" text="deprecated" /> <% } %><% if(operation["x-cloud-only"]) { %> <Badge status="cloud-only" text="cloud-only" hoverText="This feature is only available in the cloud version of NetBird." /> <% } %><% if(operation["x-experimental"]) { %> <Badge status="experimental" text="experimental" hoverText="This feature is experimental. The endpoint will likely change and we do not guarantee backwards compatibility." /> <% } %> {{ tag: '<%- operation.operation.toUpperCase() %>' , label: '<%- operation.path %>' }}
88
99
<Row>
1010
<Col>

src/pages/ipa/resources/events.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ echo $response;
211211
---
212212
213213
214-
## List all Network Traffic Events <Badge status="cloud-only" text="Cloud-Only" hoverText="This feature is only available in the cloud version of NetBird." /> <Badge status="experimental" text="Experimental" hoverText="This feature is experimental. The endpoint will likely change and does not guarantee backwards compatibility." /> {{ tag: 'GET' , label: '/api/events/network-traffic' }}
214+
## List all Network Traffic Events <Badge status="cloud-only" text="cloud-only" hoverText="This feature is only available in the cloud version of NetBird." /> <Badge status="experimental" text="experimental" hoverText="This feature is experimental. The endpoint will likely change and we do not guarantee backwards compatibility." /> {{ tag: 'GET' , label: '/api/events/network-traffic' }}
215215
216216
<Row>
217217
<Col>

src/pages/ipa/resources/ingress-ports.mdx

+10-10
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export const title = 'Ingress Ports'
22

33

44

5-
## List all Port Allocations <Badge status="cloud-only" text="Cloud-Only" hoverText="This feature is only available in the cloud version of NetBird." /> {{ tag: 'GET' , label: '/api/peers/{peerId}/ingress/ports' }}
5+
## List all Port Allocations <Badge status="cloud-only" text="cloud-only" hoverText="This feature is only available in the cloud version of NetBird." /> {{ tag: 'GET' , label: '/api/peers/{peerId}/ingress/ports' }}
66

77
<Row>
88
<Col>
@@ -226,7 +226,7 @@ echo $response;
226226
---
227227
228228
229-
## Create a Port Allocation <Badge status="cloud-only" text="Cloud-Only" hoverText="This feature is only available in the cloud version of NetBird." /> {{ tag: 'POST' , label: '/api/peers/{peerId}/ingress/ports' }}
229+
## Create a Port Allocation <Badge status="cloud-only" text="cloud-only" hoverText="This feature is only available in the cloud version of NetBird." /> {{ tag: 'POST' , label: '/api/peers/{peerId}/ingress/ports' }}
230230
231231
<Row>
232232
<Col>
@@ -614,7 +614,7 @@ echo $response;
614614
---
615615
616616
617-
## Retrieve a Port Allocation <Badge status="cloud-only" text="Cloud-Only" hoverText="This feature is only available in the cloud version of NetBird." /> {{ tag: 'GET' , label: '/api/peers/{peerId}/ingress/ports/{allocationId}' }}
617+
## Retrieve a Port Allocation <Badge status="cloud-only" text="cloud-only" hoverText="This feature is only available in the cloud version of NetBird." /> {{ tag: 'GET' , label: '/api/peers/{peerId}/ingress/ports/{allocationId}' }}
618618
619619
<Row>
620620
<Col>
@@ -830,7 +830,7 @@ echo $response;
830830
---
831831
832832
833-
## Update a Port Allocation <Badge status="cloud-only" text="Cloud-Only" hoverText="This feature is only available in the cloud version of NetBird." /> {{ tag: 'PUT' , label: '/api/peers/{peerId}/ingress/ports/{allocationId}' }}
833+
## Update a Port Allocation <Badge status="cloud-only" text="cloud-only" hoverText="This feature is only available in the cloud version of NetBird." /> {{ tag: 'PUT' , label: '/api/peers/{peerId}/ingress/ports/{allocationId}' }}
834834
835835
<Row>
836836
<Col>
@@ -1222,7 +1222,7 @@ echo $response;
12221222
---
12231223
12241224
1225-
## Delete a Port Allocation <Badge status="cloud-only" text="Cloud-Only" hoverText="This feature is only available in the cloud version of NetBird." /> {{ tag: 'DELETE' , label: '/api/peers/{peerId}/ingress/ports/{allocationId}' }}
1225+
## Delete a Port Allocation <Badge status="cloud-only" text="cloud-only" hoverText="This feature is only available in the cloud version of NetBird." /> {{ tag: 'DELETE' , label: '/api/peers/{peerId}/ingress/ports/{allocationId}' }}
12261226
12271227
<Row>
12281228
<Col>
@@ -1390,7 +1390,7 @@ echo $response;
13901390
---
13911391
13921392
1393-
## List all Ingress Peers <Badge status="cloud-only" text="Cloud-Only" hoverText="This feature is only available in the cloud version of NetBird." /> {{ tag: 'GET' , label: '/api/ingress/peers' }}
1393+
## List all Ingress Peers <Badge status="cloud-only" text="cloud-only" hoverText="This feature is only available in the cloud version of NetBird." /> {{ tag: 'GET' , label: '/api/ingress/peers' }}
13941394
13951395
<Row>
13961396
<Col>
@@ -1590,7 +1590,7 @@ echo $response;
15901590
---
15911591
15921592
1593-
## Create a Ingress Peer <Badge status="cloud-only" text="Cloud-Only" hoverText="This feature is only available in the cloud version of NetBird." /> {{ tag: 'POST' , label: '/api/ingress/peers' }}
1593+
## Create a Ingress Peer <Badge status="cloud-only" text="cloud-only" hoverText="This feature is only available in the cloud version of NetBird." /> {{ tag: 'POST' , label: '/api/ingress/peers' }}
15941594
15951595
<Row>
15961596
<Col>
@@ -1848,7 +1848,7 @@ echo $response;
18481848
---
18491849
18501850
1851-
## Retrieve a Ingress Peer <Badge status="cloud-only" text="Cloud-Only" hoverText="This feature is only available in the cloud version of NetBird." /> {{ tag: 'GET' , label: '/api/ingress/peers/{ingressPeerId}' }}
1851+
## Retrieve a Ingress Peer <Badge status="cloud-only" text="cloud-only" hoverText="This feature is only available in the cloud version of NetBird." /> {{ tag: 'GET' , label: '/api/ingress/peers/{ingressPeerId}' }}
18521852
18531853
<Row>
18541854
<Col>
@@ -2052,7 +2052,7 @@ echo $response;
20522052
---
20532053
20542054
2055-
## Update a Ingress Peer <Badge status="cloud-only" text="Cloud-Only" hoverText="This feature is only available in the cloud version of NetBird." /> {{ tag: 'PUT' , label: '/api/ingress/peers/{ingressPeerId}' }}
2055+
## Update a Ingress Peer <Badge status="cloud-only" text="cloud-only" hoverText="This feature is only available in the cloud version of NetBird." /> {{ tag: 'PUT' , label: '/api/ingress/peers/{ingressPeerId}' }}
20562056
20572057
<Row>
20582058
<Col>
@@ -2306,7 +2306,7 @@ echo $response;
23062306
---
23072307
23082308
2309-
## Delete a Ingress Peer <Badge status="cloud-only" text="Cloud-Only" hoverText="This feature is only available in the cloud version of NetBird." /> {{ tag: 'DELETE' , label: '/api/ingress/peers/{ingressPeerId}' }}
2309+
## Delete a Ingress Peer <Badge status="cloud-only" text="cloud-only" hoverText="This feature is only available in the cloud version of NetBird." /> {{ tag: 'DELETE' , label: '/api/ingress/peers/{ingressPeerId}' }}
23102310
23112311
<Row>
23122312
<Col>

0 commit comments

Comments
 (0)