-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
running precommit hooks on all md files
- Loading branch information
Showing
62 changed files
with
657 additions
and
931 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,41 +2,40 @@ | |
|
||
All URIs are relative to *https://api.notefile.net* | ||
|
||
Method | HTTP request | Description | ||
------------- | ------------- | ------------- | ||
[**login**](AuthorizationApi.md#login) | **POST** /auth/login | | ||
|
||
|
||
| Method | HTTP request | Description | | ||
| -------------------------------------- | -------------------- | ----------- | | ||
| [**login**](AuthorizationApi.md#login) | **POST** /auth/login | | ||
|
||
## login | ||
|
||
> Login200Response login(loginRequest) | ||
|
||
|
||
Gets a session token from the API from a username and password. | ||
|
||
### Example | ||
|
||
```javascript | ||
import * as NotehubJs from '@blues-inc/notehub-js'; | ||
import * as NotehubJs from "@blues-inc/notehub-js"; | ||
|
||
let apiInstance = new NotehubJs.AuthorizationApi(); | ||
let loginRequest = {"username":"[email protected]","password":"test-password"}; // LoginRequest | | ||
apiInstance.login(loginRequest).then((data) => { | ||
console.log('API called successfully. Returned data: ' + JSON.stringify(data)); | ||
}, (error) => { | ||
console.error(error); | ||
}); | ||
|
||
let loginRequest = { username: "[email protected]", password: "test-password" }; // LoginRequest | | ||
apiInstance.login(loginRequest).then( | ||
(data) => { | ||
console.log( | ||
"API called successfully. Returned data: " + JSON.stringify(data) | ||
); | ||
}, | ||
(error) => { | ||
console.error(error); | ||
} | ||
); | ||
``` | ||
|
||
### Parameters | ||
|
||
|
||
Name | Type | Description | Notes | ||
------------- | ------------- | ------------- | ------------- | ||
**loginRequest** | [**LoginRequest**](LoginRequest.md)| | | ||
| Name | Type | Description | Notes | | ||
| ---------------- | ----------------------------------- | ----------- | ----- | | ||
| **loginRequest** | [**LoginRequest**](LoginRequest.md) | | | ||
|
||
### Return type | ||
|
||
|
@@ -50,4 +49,3 @@ No authorization required | |
|
||
- **Content-Type**: application/json | ||
- **Accept**: application/json | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.