@@ -126,6 +126,23 @@ catch (OpaException) {
126
126
127
127
# OPA OpenAPI SDK (low-level)
128
128
129
+ <!-- Start Summary [summary] -->
130
+ ## Summary
131
+
132
+ For more information about the API: [ Enterprise OPA documentation] ( https://docs.styra.com/enterprise-opa )
133
+ <!-- End Summary [summary] -->
134
+
135
+ <!-- Start Table of Contents [toc] -->
136
+ ## Table of Contents
137
+
138
+ * [ SDK Installation] ( #sdk-installation )
139
+ * [ SDK Example Usage] ( #sdk-example-usage )
140
+ * [ Available Resources and Operations] ( #available-resources-and-operations )
141
+ * [ Error Handling] ( #error-handling )
142
+ * [ Server Selection] ( #server-selection )
143
+ * [ Authentication] ( #authentication )
144
+ <!-- End Table of Contents [toc] -->
145
+
129
146
<!-- Start SDK Example Usage [usage] -->
130
147
## SDK Example Usage
131
148
@@ -141,10 +158,11 @@ var sdk = new OpaApiClient(bearerAuth: "<YOUR_BEARER_TOKEN_HERE>");
141
158
142
159
var res = await sdk .ExecuteDefaultPolicyWithInputAsync (
143
160
input : Input .CreateNumber (
144
- 8203 . 11 D
145
- ),
161
+ 8203 . 11 D
162
+ ),
146
163
pretty : false ,
147
- acceptEncoding : Styra .Opa .OpenApi .Models .Components .GzipAcceptEncoding .Gzip );
164
+ acceptEncoding : Styra .Opa .OpenApi .Models .Components .GzipAcceptEncoding .Gzip
165
+ );
148
166
149
167
// handle response
150
168
```
@@ -257,11 +275,13 @@ var sdk = new OpaApiClient(bearerAuth: "<YOUR_BEARER_TOKEN_HERE>");
257
275
try
258
276
{
259
277
var res = await sdk .ExecuteDefaultPolicyWithInputAsync (
260
- input : Input .CreateNumber (
261
- 8203 . 11 D
262
- ),
263
- pretty : false ,
264
- acceptEncoding : Styra .Opa .OpenApi .Models .Components .GzipAcceptEncoding .Gzip );
278
+ input : Input .CreateNumber (
279
+ 8203 . 11 D
280
+ ),
281
+ pretty : false ,
282
+ acceptEncoding : Styra .Opa .OpenApi .Models .Components .GzipAcceptEncoding .Gzip
283
+ );
284
+
265
285
// handle response
266
286
}
267
287
catch (Exception ex )
@@ -279,7 +299,6 @@ catch (Exception ex)
279
299
// handle exception
280
300
}
281
301
}
282
-
283
302
```
284
303
<!-- End Error Handling [errors] -->
285
304
@@ -305,10 +324,11 @@ var sdk = new OpaApiClient(bearerAuth: "<YOUR_BEARER_TOKEN_HERE>");
305
324
306
325
var res = await sdk .ExecuteDefaultPolicyWithInputAsync (
307
326
input : Input .CreateNumber (
308
- 8203 . 11 D
309
- ),
327
+ 8203 . 11 D
328
+ ),
310
329
pretty : false ,
311
- acceptEncoding : Styra .Opa .OpenApi .Models .Components .GzipAcceptEncoding .Gzip );
330
+ acceptEncoding : Styra .Opa .OpenApi .Models .Components .GzipAcceptEncoding .Gzip
331
+ );
312
332
313
333
// handle response
314
334
```
0 commit comments