You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/photo:
post:
security:
- ApiKeyAuth: []
- BearerAuth: []
description: Upload a new photo and get back the unique identifier
operationId: addPhoto
x-vertx-event-bus: svc.photo
requestBody:
content:
image/*:
schema:
type: string
format: binary
responses:
'202':
description: Accepted the upload
content:
application/json:
schema:
$ref: '#/components/schemas/ImageObject'
'403':
description: The authenticated user is not authorized to upload a photo
And the generated APIClient code looks like:
public void addPhotoWithImage*Buffer(
Buffer buffer, Handler<AsyncResult<HttpResponse>> handler) {
// Check required params
// Generate the uri
String uri = "/photo";
HttpRequest request = client.post(uri);
MultiMap requestCookies = MultiMap.caseInsensitiveMultiMap();
this.addHeaderParam("Content-Type", "image/*", request);
this.attachApiKeyAuthSecurity(request, requestCookies);
this.attachBearerAuthSecurity(request, requestCookies);
this.renderAndAttachCookieHeader(request, requestCookies);
request.sendBuffer(buffer, handler);
}
The addPhotoWithImage*Buffer is not valid in Java
The text was updated successfully, but these errors were encountered:
For example, one of the OpenAPI endpoints is:
And the generated APIClient code looks like:
The
addPhotoWithImage*Buffer
is not valid in JavaThe text was updated successfully, but these errors were encountered: