Skip to content

modelcatalog.DefaultApi

All URIs are relative to https://api.models.mint.isi.edu/v1.4.0

Method HTTP request Description
user_login_get GET /user/login

user_login_get

object user_login_get(username, password)

Login the user

Example

from __future__ import print_function
import time
import modelcatalog
from modelcatalog.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = modelcatalog.DefaultApi()
username = 'username_example' # str | The user name for login
password = 'password_example' # str | The password for login in clear text

try:
    api_response = api_instance.user_login_get(username, password)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->user_login_get: %s\n" % e)

Parameters

Name Type Description Notes
username str The user name for login
password str The password for login in clear text

Return type

object

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 successful operation * X-Rate-Limit - calls per hour allowed by the user
* X-Expires-After - date in UTC when token expires
400 unsuccessful operation -

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