I have an API with this URL:
/api/doSomething?key=value1=value2
Can this be represented in Swagger/OpenAPI 3.0? And if so, how would that look like? Without the second value2 I would specify it like this:
/api/doSomething:
get:
summary: ''
parameters:
- in: path
name: key
description: ''
required: true
schema:
type: string
?key=value1=value2the correct format? The commonly used formats are?key1=value1&key2=value2andkey=value1,value2.=as a value delimiter is not supported. You'll need to define the parameter astype: stringand split the value on the server side. As explained here - Swagger query parameter template.