addonscript-spec/docs/schema/repository.md

26 lines
976 B
Markdown
Raw Normal View History

2021-06-23 22:06:21 +02:00
# Repository Object
```json
{
2022-09-23 18:33:14 +02:00
"namespace": "net.addonscript",
"instances": ["https://api.addonscript.net"]
2021-06-23 22:06:21 +02:00
}
```
## Required properties
2022-09-23 18:33:14 +02:00
### namespace
2021-06-23 22:06:21 +02:00
2022-09-23 18:33:14 +02:00
This is the [namespace](../concepts/namespaces.md), which describes this repository.
2021-06-23 22:06:21 +02:00
2022-09-23 18:33:14 +02:00
### instances
2021-06-23 22:06:21 +02:00
2022-09-23 18:33:14 +02:00
This is an array of base URLs of [AddonScript API](../api) instances, on which this
repository can be found. To get an addon from this repository, AddonScript will
try to get it from the [addon endpoint](../api/features/addons.md#get-addon)
of these API instances in the order, in which they are specified in this array.
2023-04-10 16:10:08 +02:00
Instances in this array with the `builder` [feature](../api/features/builder.md) will
be used by AddonScript, to request the launch environment for an addon with a
[canonical namespace](../concepts/namespaces.md#canonical-namespaces) equal
to the [namespace](#namespace) of this repository. The first API instance with
2023-04-10 16:10:08 +02:00
the `builder` feature will be used in this case with the others as fallback.