addonscript-spec/docs/schema/repository.md

31 lines
783 B
Markdown
Raw Normal View History

2021-06-23 22:06:21 +02:00
# Repository Object
```json
{
"id": "asrepo",
"type": "api",
2022-02-27 19:21:21 +01:00
"url": "https://api.addonscript.net"
2021-06-23 22:06:21 +02:00
}
```
## Required properties
### id
This is the ID of the repository. It has to be unique to the AddonScript file.
### type
2022-02-27 19:21:21 +01:00
This is the type of the repository. Possible values are `addonscript` or `maven`.
A repository of the type `addonscript` is an instance of the [AddonScript API](../api).
AddonScript will use the basic endpoints of that instance to retrieve available versions
of a specific addon, as well as the [addon JSON](./addon.md) for a specific version of an
addon.
2021-06-23 22:06:21 +02:00
### url
2021-06-23 22:06:21 +02:00
2022-02-27 19:21:21 +01:00
This is the base URL of an [AddonScript API](../api) instance, if the repository
type is `addonscript`, or the base URL of a Maven Repository, if the repository
type is `maven`.