Skip to content

Latest commit

 

History

History
133 lines (99 loc) · 3.32 KB

ServerApi.md

File metadata and controls

133 lines (99 loc) · 3.32 KB

TmApi.Api.ServerApi

All URIs are relative to https://localhost:7008/tmapi/v1

Method HTTP request Description
ChangePassword POST /change-password Change password
GetServerInfo GET /server Server information

ChangePassword

void ChangePassword (ChangePasswordRequest changePasswordRequest)

Change password

Use this request to change the password.

Example

using System;
using System.Diagnostics;
using TmApi.Api;
using TmApi.Client;
using TmApi.Model;

namespace Example
{
    public class ChangePasswordExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new ServerApi();
            var changePasswordRequest = new ChangePasswordRequest(); // ChangePasswordRequest | Change password request

            try
            {
                // Change password
                apiInstance.ChangePassword(changePasswordRequest);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServerApi.ChangePassword: " + e.Message );
            }
        }
    }
}

Parameters

Name Type Description Notes
changePasswordRequest ChangePasswordRequest Change password request

Return type

void (empty response body)

Authorization

BasicAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetServerInfo

ServerInfo GetServerInfo ()

Server information

Example

using System;
using System.Diagnostics;
using TmApi.Api;
using TmApi.Client;
using TmApi.Model;

namespace Example
{
    public class GetServerInfoExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new ServerApi();

            try
            {
                // Server information
                ServerInfo result = apiInstance.GetServerInfo();
                Debug.WriteLine(result.ToJson());
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServerApi.GetServerInfo: " + e.Message );
            }
        }
    }
}

Parameters

This endpoint does not need any parameter.

Return type

ServerInfo

Authorization

BasicAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]