fix: do not add a config folder to api path (#1187)

This commit is contained in:
Ihor Karpiuk
2023-07-26 14:37:07 +03:00
committed by GitHub
parent 0976fbabab
commit 2e02eda23b
11 changed files with 113 additions and 10 deletions

View File

@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf8" />
<title>{{title}}</title>
<!-- needed for adaptive design -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
padding: 0;
margin: 0;
}
</style>
{{{redocHead}}}
{{#unless disableGoogleFont}}<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:300,400,700" rel="stylesheet">{{/unless}}
</head>
<body>
{{{redocHTML}}}
</body>
</html>

View File

@@ -0,0 +1,4 @@
type: object
properties:
message:
type: string

View File

@@ -0,0 +1,19 @@
openapi: 3.1.0
servers:
- url: http://localhost
info:
title: Sample API
version: 1.0.0
paths:
/hello:
get:
operationId: getMessage
security: []
summary: Get a greeting message
responses:
200:
description: OK
content:
application/json:
schema:
$ref: ./message-schema.yaml

View File

@@ -0,0 +1,5 @@
extends:
- minimal
theme:
openapi:
htmlTemplate: ../index.hbs

View File

@@ -0,0 +1,10 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`E2E build-docs build docs with config option 1`] = `
🎉 bundled successfully in: nested/redoc-static.html (38 KiB) [⏱ <test>ms].
Found nested/redocly.yaml and using theme.openapi options
Prerendering docs
`;