addonscript-spec/docs/schema/repository.md
Timo Ley c7e68360fb
All checks were successful
continuous-integration/drone/push Build is passing
env builder overhaul
2023-04-10 16:10:08 +02:00

26 lines
976 B
Markdown

# Repository Object
```json
{
"namespace": "net.addonscript",
"instances": ["https://api.addonscript.net"]
}
```
## Required properties
### namespace
This is the [namespace](../concepts/namespaces.md), which describes this repository.
### instances
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.
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
the `builder` feature will be used in this case with the others as fallback.