dotnet / dotnet/docfx

[Bug] Swagger basePath is not rendered in the generated html

Open
#10,009 2 comments 0 reactions 0 assignees View on GitHub
rest-api
Dominant language
C#
Stars
4.4k
Forks
890
Avg merge
2h 11m
Merged PRs (30d)
10

Description

**Describe the bug**
Even if you set **basePath** in the Swagger file the path is not rendered in the Html file generated.

**To Reproduce**
Steps to reproduce the behavior:
1. clone https://github.com/docascode/docfx-seed/tree/master
2. the following file contain "basePath": "/myorganization" --> https://github.com/docascode/docfx-seed/blob/master/restapi/contacts_swagger2.json)
3. the result is no text with "/myorganization" in the html generated --> https://docascode.github.io/docfx-seed/restapi/contacts.html

**Expected behavior**
Without the base path the api path showed is wrong , so I think it's important to show the basePath on the top of the html generated

**Context:**
- OS: Windows
- Docfx version: 2.76.0

**Additional context**
I tried it with 2 different template (modern and default).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.