GetApiVersion()

Get the current API version

Description

Returns the current API version (which consists of a string API build number and string framework version).

Package Details

Interface

IAppManager

Syntax

AppManager.GetApiVersion()

Returns

Task<ApiVersion>

API

[GET] /api/v1/version

Returns

string API Build Number
string WebFramework version

Example

var apiVersion = await appManager.GetApiVersion(); Response.Write( $@"The MTOA API build number is: {apiVersion.Version}<br>"); Response.Write( $@"The MTOA Framework version is: {apiVersion.WebFrameworkVersion}<br>");