login
User Login
Login with email and password to receive JWT token
/auth/login
Usage and SDK Samples
curl -X POST\
-H "Authorization: Bearer [[accessToken]]"\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:8080/auth/login"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AuthenticationAPIsApi;
import java.io.File;
import java.util.*;
public class AuthenticationAPIsApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
AuthenticationAPIsApi apiInstance = new AuthenticationAPIsApi();
LoginRequest body = ; // LoginRequest |
try {
LoginResponse result = apiInstance.login(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthenticationAPIsApi#login");
e.printStackTrace();
}
}
}
import io.swagger.client.api.AuthenticationAPIsApi;
public class AuthenticationAPIsApiExample {
public static void main(String[] args) {
AuthenticationAPIsApi apiInstance = new AuthenticationAPIsApi();
LoginRequest body = ; // LoginRequest |
try {
LoginResponse result = apiInstance.login(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthenticationAPIsApi#login");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
LoginRequest *body = ; //
AuthenticationAPIsApi *apiInstance = [[AuthenticationAPIsApi alloc] init];
// User Login
[apiInstance loginWith:body
completionHandler: ^(LoginResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var SecureNotesApi = require('secure_notes_api');
var defaultClient = SecureNotesApi.ApiClient.instance;
var api = new SecureNotesApi.AuthenticationAPIsApi()
var body = ; // {{LoginRequest}}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.login(body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class loginExample
{
public void main()
{
var apiInstance = new AuthenticationAPIsApi();
var body = new LoginRequest(); // LoginRequest |
try
{
// User Login
LoginResponse result = apiInstance.login(body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling AuthenticationAPIsApi.login: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiAuthenticationAPIsApi();
$body = ; // LoginRequest |
try {
$result = $api_instance->login($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AuthenticationAPIsApi->login: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AuthenticationAPIsApi;
my $api_instance = WWW::SwaggerClient::AuthenticationAPIsApi->new();
my $body = WWW::SwaggerClient::Object::LoginRequest->new(); # LoginRequest |
eval {
my $result = $api_instance->login(body => $body);
print Dumper($result);
};
if ($@) {
warn "Exception when calling AuthenticationAPIsApi->login: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.AuthenticationAPIsApi()
body = # LoginRequest |
try:
# User Login
api_response = api_instance.login(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling AuthenticationAPIsApi->login: %s\n" % e)
Parameters
Name | Description |
---|---|
body * |