Skip to content

Commit

Permalink
t Initial scaffolding for the first lesson.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinswiber committed Sep 22, 2023
0 parents commit 3001518
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .spectral.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
extends: [[spectral:oas, off]]
rules:
oas3-schema: true
37 changes: 37 additions & 0 deletions machines.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# yaml-language-server: $schema=https://spec.openapis.org/oas/3.1/schema/2022-10-07
---
openapi: 3.1.0
info:
title: Machines API
version: 0.1.0
paths:
/machines:
get:
responses:
"200":
description: A list of machines.
content:
application/json:
schema:
type: object
properties:
machines:
type: array
items:
type: object
properties:
id:
type: string
region:
type: string
examples:
list:
summary: List of machines
value:
machines:
- id: mercury
region: us-west-2
- id: venus
region: us-west-2
- id: mars
region: us-east-1

0 comments on commit 3001518

Please sign in to comment.