Skip to content

Instantly share code, notes, and snippets.

@Ja7ad
Created March 14, 2023 05:20
Show Gist options
  • Save Ja7ad/ef8e80a9a6aba8fbd305a1956cb8c77c to your computer and use it in GitHub Desktop.
Save Ja7ad/ef8e80a9a6aba8fbd305a1956cb8c77c to your computer and use it in GitHub Desktop.
openapi: 3.0.1
info:
title: test.proto
version: version not set
servers:
- url: /
tags:
- name: Foo
paths:
/list:
get:
tags:
- Foo
summary: Sends a greeting
operationId: Foo_Bar
parameters:
- name: filter
in: query
schema:
type: object
format: string
responses:
200:
description: A successful response.
content:
application/json:
schema:
$ref: '#/components/schemas/rpxBarResponse'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/rpcStatus'
components:
schemas:
protobufAny:
type: object
properties:
'@type':
type: string
additionalProperties:
type: object
rpcStatus:
type: object
properties:
code:
type: integer
format: int32
message:
type: string
details:
type: array
items:
$ref: '#/components/schemas/protobufAny'
rpxBarResponse:
type: object
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment