api/server.yaml

37 lines
723 B
YAML

openapi: 3.1.0
info:
title: Schnabu API
version: 0.0.1
servers:
- url: http://localhost:8080
paths:
/geocoding:
get:
parameters:
- name: query
in: query
required: true
description: place to search coordinates for
schema:
type: string
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/GeocodingLocation"
components:
schemas:
GeocodingLocation:
type: object
properties:
name:
type: string
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT