Skip to content

Latest commit

 

History

History
68 lines (41 loc) · 1.65 KB

SecurityApi.md

File metadata and controls

68 lines (41 loc) · 1.65 KB

cs_sdk_python.api_client.SecurityApi

All URIs are relative to https://localhost:50443

Method HTTP request Description
authenticate_user POST /api/auth/login Generate a token to access the Rest API Server

authenticate_user

AuthDto authenticate_user(request_model)

Generate a token to access the Rest API Server

Example

import asyncio
import os

import cs_sdk_python.api_client
from cs_sdk_python.api_client import ApiClient, Configuration
from cs_sdk_python.api_client.api import SecurityApi


async def main():
    config = Configuration(host="https://localhost:50443")
    async with ApiClient(config) as client:
        api = SecurityApi(client)
        response = await api.authenticate_user(
            request_model=cs_sdk_python.api_client.LoginRequest(),
        )


asyncio.run(main())

Replace example values and populate the required model fields before running.

Parameters

Name Type Description Notes
request_model LoginRequest

Return type

AuthDto

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 OK -

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