Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
docs: add instances endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
wellingguzman committed Jun 28, 2018
1 parent 9220b83 commit 805f926
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,12 +228,52 @@ The access token that is returned through this endpoint must be used with any su
| /[env]/settings | Yes
| /[env]/users | Yes
| /[env]/utils | No
| /instances | No
| /interfaces | No
| /listings | No
| /pages | No
| /server | No
| /types | Yes

### Create new instance

Create a new instance connection

```http
POST /instances
```

#### Body

| Attribute | Description | Required
| --------------- | -------------------------------------- | ---------
| `db_host` | Database host. Default: `localhost` | No
| `db_port` | Database port. Default: `3306` | No
| `db_name` | Database name. | Yes
| `db_user` | Database username. | Yes
| `db_password` | Database user password. Default: `None`| No
| `user_email` | Admin email | Yes
| `user_password` | Admin password | Yes
| `user_token` | Admin token. Default: `admin_token` | No
| `mail_from` | Default mailer `from` email | No
| `project_name` | The Directus name. Default: `Directus` | No
| `env` | The environment name. | No
| `force` | Force the installation | No

::: warning
When `env` is not specified it will create the default configuration
:::

```json
{
"db_name": "directus",
"db_user": "root",
"db_password": "pass",
"user_email": "admin@admin.com",
"user_password": "admin"
}
```

### Refresh Authentication Token

Gets a new fresh token using a valid auth token
Expand Down

0 comments on commit 805f926

Please sign in to comment.