Skip to content

Commit

Permalink
merge in develop and fix conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
dandelany committed Jun 12, 2024
2 parents 4ff8f2e + f4a4b13 commit 60d1243
Show file tree
Hide file tree
Showing 162 changed files with 5,364 additions and 389 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.png filter=lfs diff=lfs merge=lfs -text
*.webm filter=lfs diff=lfs merge=lfs -text
*.mov filter=lfs diff=lfs merge=lfs -text
*.mp4 filter=lfs diff=lfs merge=lfs -text
3 changes: 3 additions & 0 deletions .github/workflows/generate-pdfs.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Generate PDFs

on:
push:
tags:
- v*
workflow_dispatch:

jobs:
Expand Down
3 changes: 3 additions & 0 deletions docs/api/assets/api-playground-admin-secret.mov
Git LFS file not shown
3 changes: 0 additions & 3 deletions docs/api/assets/api-playground-headers.png

This file was deleted.

3 changes: 3 additions & 0 deletions docs/api/assets/api-playground-pre-request-script.mov
Git LFS file not shown
82 changes: 82 additions & 0 deletions docs/api/examples/advanced-extensions.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# Extensions

## Adding an Extension

```graphql
mutation InsertExtension($extension: extensions_insert_input!) {
insert_extensions_one(object: $extension) {
id
label
url
description
}
}
```

Below is an example query variable that creates an extension called "My External Application".

```json
{
"extension": {
"label": "My External Application",
"url": "https://externalapp/api/test",
"description": "An application that exists outside of Aerie."
}
}
```

## Permitting Roles to run Extensions

```graphql
mutation InsertExtensionRoles($roles: [extension_roles_insert_input!]!) {
insert_extension_roles(objects: $roles) {
returning {
extension {
id
label
}
role
}
}
}
```

Below is an example query variable that grants the `aerie_admin` and `user` roles to run the extension with an ID of 1.

```json
{
"roles": [
{ "extension_id": 1, "role": "aerie_admin" },
{ "extension_id": 1, "role": "user" }
]
}
```

## Deleting an Extension

```graphql
mutation DeleteExtension($extension_id: Int!) {
delete_extensions_by_pk(id: $extension_id) {
id
}
}
```

## Get Extensions With Roles

```graphql
query GetExtensions {
extensions {
description
extension_roles {
id
role
}
id
label
url
}
}
```

Invocation payloads are discussed on [Planning / Advanced - Extensions](/planning/advanced-extensions).
58 changes: 0 additions & 58 deletions docs/api/examples/constraints.md

This file was deleted.

Loading

0 comments on commit 60d1243

Please sign in to comment.