mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-25 14:06:41 +01:00
Add link to github.io site as external OpenAPI documentation
This commit is contained in:
@@ -342,6 +342,12 @@ namespace Tgstation.Server.Host.Core
|
||||
if (context == null)
|
||||
throw new ArgumentNullException(nameof(context));
|
||||
|
||||
swaggerDoc.ExternalDocs = new OpenApiExternalDocs
|
||||
{
|
||||
Description = "API Usage Documentation",
|
||||
Url = new Uri("https://tgstation.github.io/tgstation-server/api.html"),
|
||||
};
|
||||
|
||||
swaggerDoc.Components.Parameters.Add(ApiHeaders.InstanceIdHeader, new OpenApiParameter
|
||||
{
|
||||
In = ParameterLocation.Header,
|
||||
|
||||
Reference in New Issue
Block a user