All URIs are relative to https://api.models.mint.isi.edu/v1.8.0
| Method | HTTP request | Description |
|---|---|---|
| user_login_post | POST /user/login |
str user_login_post(user=user)
Login the user
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()
user = modelcatalog.User() # User | User credentials (optional)
try:
api_response = api_instance.user_login_post(user=user)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->user_login_post: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| user | User | User credentials | [optional] |
str
No authorization required
- Content-Type: application/json
- Accept: application/json
| 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]