github.com/emcfarlane/larking@v0.0.0-20220605172417-1704b45ee6c3/starlib/net/starlarkopenapi/README.md (about) 1 ## open 2 3 `open(url, **kwargs)` opens an OpenAPI spec creating a new openAPI client. 4 5 | Parameter | Type | Description | 6 | --------- | ---- | ----------- | 7 | url | string | Runtimevar URL of openAPI spec. | 8 | client | http.client | Optional HTTP client to use for all requests. | 9 10 ### client·service·method 11 12 `c.<service>.<method>(**parameters)` sends a HTTP request and returns a HTTP response. 13 OpenAPI clients will translate the spec into a typed client. 14 15 | Parameter | Type | Description | 16 | --------- | ---- | ----------- | 17 | service | attr | Methods grouped by "tag". | 18 | method | attr | Callable method in the group. | 19 | parameters | {}any | Request parameters. |