0% found this document useful (0 votes)
34 views2 pages

Swagger Template

The document defines a SwaggerOptions class that contains a method GetSwaggerOptions to return a SwaggerPlaceholder object. The SwaggerPlaceholder object contains properties to define configuration values for an OpenAPI specification including version, titles, descriptions, contact details, URLs and operation properties for GET, POST, PUT and DELETE methods.

Uploaded by

hell raiser
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views2 pages

Swagger Template

The document defines a SwaggerOptions class that contains a method GetSwaggerOptions to return a SwaggerPlaceholder object. The SwaggerPlaceholder object contains properties to define configuration values for an OpenAPI specification including version, titles, descriptions, contact details, URLs and operation properties for GET, POST, PUT and DELETE methods.

Uploaded by

hell raiser
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

public class SwaggerOptions

{
public static SwaggerPlaceholder GetSwaggerOptions()
{
return new SwaggerPlaceholder
{
Version = "v1",

Title = "",
Description = "",

ContactName = "",
ContactEmail = "",

TechnicalOwnerEmail = "",

ProductOwnerEmail = "",

BusinessOwnerEmail = "",

OpenApiString = "",

LocalServerUrl = "",
DevServerUrl = "",

GlobalTagName = "",
GlobalTagDescription = "",

GetConfigPath = "",
GetConfigPathSummary = "",
GetConfigPathDescription = "",
GetConfigPathOperationId = "",

GetByIdPath = "",
GetByIdPathSummary = "",
GetByIdPathDescription = "",
GetByIdPathOperationId = "",

GetAllPath = "",
GetAllPathSummary = "",
GetAllPathDescription = "",
GetAllPathOperationId = "",

PostSummary = "",
PostDescription = "",
PostOperationId = "",

PutSummary = "",
PutDescription = "",
PutOperationId = "",

DeleteSummary = "",
DeleteDescription = "",
DeleteOperationId = "",
};
}
}
string githubUsername = "anshuman-01-26";
string githubToken = "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";
var credentials =
Convert.ToBase64String(Encoding.ASCII.GetBytes($"{githubUsername}:{githubToken}"));
httpClient.DefaultRequestHeaders.Authorization = new
AuthenticationHeaderValue("Basic", credentials);

You might also like