You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
2.1 KiB

9 months ago
# Generated with protoc-gen-openapi
# https://github.com/google/gnostic/tree/master/cmd/protoc-gen-openapi
openapi: 3.0.3
info:
title: Greeter API
description: The greeting service definition.
version: 0.0.1
paths:
/ping:
get:
tags:
- Greeter
description: Sends a greeting
operationId: Greeter_Ping
parameters:
- name: name
in: query
schema:
type: string
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/api.PingReply'
/upload:
post:
tags:
- Greeter
operationId: Greeter_Upload
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/api.UploadRequest'
required: true
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/api.UploadReply'
components:
schemas:
api.PingReply:
type: object
properties:
message:
type: string
description: The response message containing the greetings
api.UploadReply:
type: object
properties:
message:
type: string
description: The response message containing the greetings
api.UploadRequest:
type: object
properties:
name:
type: string
type:
type: string
hash:
type: string
file:
type: string
format: bytes
tags:
- name: Greeter