Skip to content

Instantly share code, notes, and snippets.

@defunctzombie
Created January 11, 2023 22:57
Show Gist options
  • Save defunctzombie/001a61810bd561a4fb74e034ca6d8fb4 to your computer and use it in GitHub Desktop.
Save defunctzombie/001a61810bd561a4fb74e034ca6d8fb4 to your computer and use it in GitHub Desktop.
openapi: 3.1.0
info:
title: Foxglove API
version: "1"
x-logo:
url: https://foxglove.dev/images/logo-icon-round.png
description: |
Api documentation for foxglove services.
servers:
- url: http://api.foxglove.dev/v1
description: Production
security:
- Session: []
paths:
/devices/{id}:
parameters:
- in: path
name: id
schema:
type: string
required: true
description: Device Id
get:
tags: [Devices]
summary: Get a device
security:
- Session: ["org_member"]
- ApiKey: ["devices.list"]
responses:
"200":
description: Success
content:
application/json:
schema:
$ref: "#/components/schemas/Device"
components:
securitySchemes:
Session:
type: apiKey
in: cookie
name: fox.session
ApiKey:
type: http
scheme: bearer
schemas:
Device:
type: object
properties:
id:
type: string
description: Opaque identifier
name:
type: string
description: Organization-chosen device name
required:
- id
- name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment