-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add generate workflow from swagger or openai
- Loading branch information
Showing
6 changed files
with
147 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
version: "1.0" | ||
name: Test swagger | ||
config: | ||
http: | ||
baseURL: http://localhost:3000 | ||
tests: | ||
default: | ||
name: Default | ||
steps: | ||
- http: | ||
url: / | ||
method: GET | ||
schema: | ||
type: object | ||
properties: | ||
ok: bool | ||
- http: | ||
url: /hello | ||
method: GET | ||
check: | ||
status: 200 | ||
schema: | ||
type: object | ||
description: Successful response with a JSON object | ||
- http: | ||
url: /ping | ||
method: GET | ||
check: | ||
status: 200 | ||
schema: | ||
type: object | ||
properties: | ||
pong: | ||
type: string | ||
components: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
openapi: 3.0.1 | ||
info: | ||
title: Test swagger | ||
description: Testing the Fastify swagger API | ||
version: 0.1.0 | ||
externalDocs: | ||
description: Find more info here | ||
url: https://swagger.io | ||
servers: | ||
- url: http://localhost:3000 | ||
paths: | ||
/: | ||
get: | ||
responses: | ||
200: | ||
description: Default Response | ||
content: {} | ||
/hello: | ||
get: | ||
responses: | ||
200: | ||
description: Successful response with a JSON object | ||
content: | ||
application/json: | ||
schema: | ||
type: string | ||
description: Successful response with a JSON object | ||
/ping: | ||
get: | ||
responses: | ||
200: | ||
description: Default Response | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
pong: | ||
type: string | ||
components: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"title": "Test swagger", | ||
"description": "Testing the Fastify swagger API", | ||
"version": "0.1.0" | ||
}, | ||
"definitions": {}, | ||
"paths": { | ||
"/": { | ||
"get": { | ||
"responses": { | ||
"200": { | ||
"description": "Default Response" | ||
} | ||
} | ||
} | ||
}, | ||
"/hello": { | ||
"get": { | ||
"responses": { | ||
"200": { | ||
"description": "Default Response" | ||
} | ||
} | ||
} | ||
}, | ||
"/ping": { | ||
"get": { | ||
"responses": { | ||
"200": { | ||
"description": "Default Response", | ||
"schema": { | ||
"type": "object", | ||
"properties": { | ||
"pong": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"host": "localhost:3000", | ||
"schemes": [ | ||
"http", | ||
"https" | ||
], | ||
"consumes": [ | ||
"application/json" | ||
], | ||
"produces": [ | ||
"application/json" | ||
], | ||
"externalDocs": { | ||
"url": "https://swagger.io", | ||
"description": "Find more info here" | ||
} | ||
} |