@@ -70,7 +70,7 @@ import { Code } from 'astro:components';
70
70
<Code themes ={ {' light' : ' github-light' , ' dark' : ' github-dark' }} lang =" yaml" code ={ ` document:
71
71
dsl: '1.0.0-alpha5'
72
72
namespace: examples
73
- name: call-http-shorthand-endpoint
73
+ name: call-http
74
74
version: '1.0.0'
75
75
do:
76
76
- getPet:
79
79
method: get
80
80
endpoint: https://petstore.swagger.io/v2/pet/{petId} ` } />
81
81
</div >
82
- <input type =" radio" name =" code_tabs" role =" tab" class =" tab" aria-label =" Async API " />
82
+ <input type =" radio" name =" code_tabs" role =" tab" class =" tab" aria-label =" AsyncAPI " />
83
83
<div role =" tabpanel" class =" tab-content bg-base-100 border-base-300 rounded-box p-6" >
84
- <h3 class =" text-xl font-bold mb-4" >Async API Example</h3 >
84
+ <h3 class =" text-xl font-bold mb-4" >AsyncAPI Example</h3 >
85
85
<Code themes ={ {' light' : ' github-light' , ' dark' : ' github-dark' }} lang =" yaml" code ={ ` document:
86
86
dsl: '1.0.0-alpha5'
87
87
namespace: examples
88
- name: bearer-auth
88
+ name: call-asyncapi
89
89
version: '1.0.0'
90
90
do:
91
91
- findPet:
95
95
uri: https://fake.com/docs/asyncapi.json
96
96
operationRef: findPetsByStatus
97
97
server: staging
98
- message: getPetByStatusQuery
99
- binding: http
100
- payload:
101
- petId: $\{ .pet.id }
98
+ message:
99
+ payload:
100
+ petId: $\{ .pet.id }
102
101
authentication:
103
102
bearer:
104
103
token: $\{ .token } ` } />
105
104
</div >
105
+ <input type =" radio" name =" code_tabs" role =" tab" class =" tab" aria-label =" OpenAPI" />
106
+ <div role =" tabpanel" class =" tab-content bg-base-100 border-base-300 rounded-box p-6" >
107
+ <h3 class =" text-xl font-bold mb-4" >OpenAPI Example</h3 >
108
+ <Code themes ={ {' light' : ' github-light' , ' dark' : ' github-dark' }} lang =" yaml" code ={ ` document:
109
+ dsl: '1.0.0-alpha5'
110
+ namespace: examples
111
+ name: call-openapi
112
+ version: '1.0.0'
113
+ do:
114
+ - findPet:
115
+ call: openapi
116
+ with:
117
+ document:
118
+ endpoint: https://petstore.swagger.io/v2/swagger.json
119
+ operationId: findPetsByStatus
120
+ parameters:
121
+ status: available ` } />
122
+ </div >
123
+ <input type =" radio" name =" code_tabs" role =" tab" class =" tab" aria-label =" gRPC" />
124
+ <div role =" tabpanel" class =" tab-content bg-base-100 border-base-300 rounded-box p-6" >
125
+ <h3 class =" text-xl font-bold mb-4" >gRPC Example</h3 >
126
+ <Code themes ={ {' light' : ' github-light' , ' dark' : ' github-dark' }} lang =" yaml" code ={ ` document:
127
+ dsl: '1.0.0-alpha5'
128
+ namespace: examples
129
+ name: call-grpc
130
+ version: '1.0.0'
131
+ do:
132
+ - greet:
133
+ call: grpc
134
+ with:
135
+ proto:
136
+ endpoint: file://app/greet.proto
137
+ service:
138
+ name: GreeterApi.Greeter
139
+ host: localhost
140
+ port: 5011
141
+ method: SayHello
142
+ arguments:
143
+ name: '$\{ .user.preferredDisplayName }' ` } />
144
+ </div >
145
+ <input type =" radio" name =" code_tabs" role =" tab" class =" tab" aria-label =" Container" />
146
+ <div role =" tabpanel" class =" tab-content bg-base-100 border-base-300 rounded-box p-6" >
147
+ <h3 class =" text-xl font-bold mb-4" >Container Example</h3 >
148
+ <Code themes ={ {' light' : ' github-light' , ' dark' : ' github-dark' }} lang =" yaml" code ={ ` document:
149
+ dsl: '1.0.0-alpha5'
150
+ namespace: examples
151
+ name: run-container
152
+ version: '1.0.0'
153
+ do:
154
+ - runContainer:
155
+ run:
156
+ container:
157
+ image: fake-image ` } />
158
+ </div >
106
159
</div >
107
160
</Section >
108
161
0 commit comments