summaryrefslogtreecommitdiffstats
path: root/src/server/Api/V1/ApiSpecV1.cs
blob: 2b968426c3a95194ce816c05f04662492fc235a7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
namespace IOL.BookmarkThing.Server.Api.V1;

public static class ApiSpecV1
{
	private const int MAJOR = 1;
	private const int MINOR = 0;
	public const string VERSION_STRING = "1.0";

	public static ApiSpecDocument Document => new() {
			Version = new ApiVersion(MAJOR, MINOR),
			VersionName = VERSION_STRING,
			SwaggerPath = $"/swagger/{VERSION_STRING}/swagger.json",
			OpenApiInfo = new OpenApiInfo {
					Title = AppConstants.API_NAME,
					Version = VERSION_STRING
			}
	};
}