Object with typed additionalProperties
GET/with-typed-additional
This endpoint returns an object where additional properties are restricted to a specific type.
Schema:
type: object
properties:
fixedProp:
type: string
additionalProperties:
type: string
example:
fixedProp: "fixedValue"
dynamicProp: "dynamicValue"
Responses
- 200
Successful response
- application/json
- Schema
- Example (auto)
Schema
fixedPropstring
property name*string
{
"fixedProp": "fixedValue",
"dynamicProp": "dynamicValue"
}
- python
- curl
- csharp
- go
- nodejs
- ruby
- php
- java
- powershell
- dart
- javascript
- c
- objective-c
- ocaml
- r
- swift
- kotlin
- rust
- HTTP.CLIENT
- REQUESTS
import http.client
conn = http.client.HTTPSConnection("docusaurus-openapi-36b86--pr1117-8f02miao.web.app")
payload = ''
headers = {
'Accept': 'application/json'
}
conn.request("GET", "/with-typed-additional", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))