GitBook: [#139] No subject
BIN
.gitbook/assets/image (4) (1) (1).png
Normal file
|
After Width: | Height: | Size: 171 KiB |
|
Before Width: | Height: | Size: 171 KiB After Width: | Height: | Size: 118 KiB |
|
Before Width: | Height: | Size: 118 KiB After Width: | Height: | Size: 77 KiB |
|
Before Width: | Height: | Size: 77 KiB After Width: | Height: | Size: 15 KiB |
@@ -1,16 +1,22 @@
|
||||
# 🚀 Accessing the Moderne API
|
||||
|
||||
Moderne.io offers a GraphQL API https://api.moderne.io for customers to interact with through the usage of a personal access token.
|
||||
Moderne.io offers a GraphQL API at https://api.public.moderne.io for customers to interact with through the usage of a personal access token.
|
||||
|
||||
Note: Personal access tokens do not retain roles that are granted to your user account. Actions that require roles (deploying recipes and uploading ASTs) will fail as forbidden if attempted with an access token.
|
||||
|
||||
{% hint style="info" %}
|
||||
If you want to write and test GraphQL queries, you can use the graphql icon at the top right of the UI or go directly to [https://public.moderne.io/graphql](https://public.moderne.io/graphql).
|
||||
|
||||

|
||||
{% endhint %}
|
||||
|
||||
## Prerequisites
|
||||
|
||||
* Create a [Moderne Personal Access Token](../references/create-api-access-tokens.md)
|
||||
|
||||
## Go to the Moderne API
|
||||
|
||||
* [https://api.moderne.io](https://api.moderne.io)
|
||||
* [https://api.public.moderne.io](https://api.public.moderne.io)
|
||||
|
||||
## Configure your access token
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ Maven repositories are potential sources of both Abstract Syntax Tree (AST) arti
|
||||
|
||||
A particular Maven repository may contain either ASTs or recipe artifacts, or a mixture of both. Several open source and commercial products exist to serve artifacts using the Maven repository format. A single instance of one of these products may contain multiple Maven repositories.
|
||||
|
||||
 (1).png>) (1).png>)
|
||||
 (1).png>) (1) (1).png>)
|
||||
|
||||
### Comparison of two Maven integrations
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ Think of this like a static analyzer but with auto-remediation!
|
||||
|
||||
3\. Create a new Task Event Hook for Moderne, pointing the URL to https://api.moderne.io/terraform-cloud.
|
||||
|
||||
.png>)
|
||||
 (1).png>)
|
||||
|
||||
The `requestedRecipe` query parameter allows you to control which recipe will run. The recipe id for this query parameter can be copied from the recipe detail of any Terraform recipe on the Moderne platform.
|
||||
|
||||
|
||||