-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #334 from reshmabidikar/work-for-333
Auth API documentation
- Loading branch information
Showing
29 changed files
with
148 additions
and
0 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
--- | ||
includes: | ||
- aviate-catalog | ||
|
||
current_page: aviate-catalog | ||
|
||
menu_items: | ||
- index | ||
- tenant | ||
- catalog | ||
- account | ||
- payment-method | ||
- subscription | ||
- bundle | ||
- invoice | ||
- invoice-item | ||
- credit | ||
- payment | ||
- payment-transaction | ||
- invoice-payment | ||
- usage | ||
- custom-field | ||
- tag | ||
- tag-definition | ||
- export | ||
- admin | ||
- security | ||
- aviate-auth | ||
- aviate-catalog | ||
- aviate-health | ||
- aviate-metering | ||
|
||
title: Kill Bill | ||
|
||
language_tabs: | ||
- shell | ||
- java | ||
- ruby | ||
- python | ||
- javascript | ||
- php | ||
|
||
toc_footers: | ||
- <a href="mailto:[email protected]">Report a doc problem </a> | ||
|
||
search: true | ||
|
||
code_clipboard: true | ||
|
||
--- |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# Aviate Auth | ||
|
||
The Aviate Plugin uses a JWT based authentication mechanism. Thus, a valid JWT is required to access all APIs. | ||
|
||
## Auth API | ||
|
||
The Auth API generates a JWT for authenticating with the Aviate Plugin. This token must be included in the Authorization header for subsequent API requests. Note that the Auth API must be invoked with an email and password in order to generate the JWT. | ||
|
||
**HTTP Request** | ||
|
||
`POST /plugins/aviate-plugin/v1/auth` | ||
|
||
> Example Request: | ||
```shell | ||
curl -X POST \ | ||
-H 'Content-Type: application/json' \ | ||
-u "<email>:<password>" \ | ||
-H 'X-killbill-apiKey: alphaF' \ | ||
-H 'X-killbill-apisecret: alphaF' \ | ||
'http://127.0.0.1:8080/plugins/aviate-plugin/v1/auth' | ||
``` | ||
|
||
```java | ||
``` | ||
|
||
```ruby | ||
``` | ||
|
||
```python | ||
``` | ||
|
||
````php | ||
```` | ||
|
||
````javacript | ||
```` | ||
|
||
> Example Response: | ||
````json | ||
{ | ||
"token": "eyJraWQiOiJmSGs3ZkIyQzNl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q0DEAa0CbZiaj-sI3YMTOB9dRW5UHxSCy7LPpzaNd_ZRB0_MatzTbBgesSMowz9kJMyhnSCKRJLtazdzeNXapij9pg50paasMZPqlqPvvFrc5zHNRUTF84tN19cdvvmj87qZDFMMoc0X8GihrmgqsI6eJ3vAKiECwoeRKPJwHioFxu8Id9atV_1jRoSS-owULkFnfIKDSQ" | ||
} | ||
```` | ||
|
||
**Request Body** | ||
|
||
None | ||
|
||
|
||
**Query Parameters** | ||
|
||
None | ||
|
||
|
||
**Response** | ||
|
||
If successful, returns a status code of 200 and a JSON String with the token. |
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
Empty file.
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
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