Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update hoot.js #3

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/readme-micro.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: ReadMe Micro

# Run workflow for every push to the `main` branch
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout this repo
uses: actions/checkout@v3

# Run GitHub Action to sync all OpenAPI files in the repo
- name: GitHub Action
uses: readmeio/readme-micro@v2

with:
readme-micro: "'**/*.{yaml,yml,json}' --key=${{ secrets.README_MICRO_SECRET }}"
6 changes: 0 additions & 6 deletions api/hoot.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@ const filter = new Filter({
* schema:
* $ref: '#/components/schemas/NewHoot'
* responses:
* '201':
* description: successfully created hoot
* content:
* application/json:
* schema:
* $ref: '#/components/schemas/BigHoot'
* '400':
* description: invalid hoot data received
* content:
Expand Down
1 change: 1 addition & 0 deletions micro.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This is my *API*!
6 changes: 3 additions & 3 deletions oas.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
openapi: 3.0.0
info:
version: '1.0.0'
version: '1.0.1'
title: Hoot
license:
name: ISC
Expand All @@ -15,11 +15,11 @@ servers:
components:
parameters:
id:
name: id
name: id2
in: path
schema:
type: string
description: The id of the hoot you want
description: The id of the hoot you want!
required: true
example: 5c3e39af342143680d31775c
securitySchemes:
Expand Down
Loading