addonscript-spec/docs/schema/repository.md

27 lines
751 B
Markdown
Raw Normal View History

2021-06-23 22:06:21 +02:00
# Repository Object
```json
{
"id": "asrepo",
"type": "api",
"url": "https://addonscript.net/repo"
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
2021-11-13 20:47:21 +01:00
This is the type of the repository. Possible values are [`api`](../repository/api/README.md), [`maven`](../repository/maven.md) or [`index`](../repository/index.md).
2021-06-23 22:06:21 +02:00
### url
2021-06-23 22:06:21 +02:00
2021-11-14 00:37:29 +01:00
This is the base URL of the repository. While other URLs in AddonScript can have different schemes,
the base URL has to be a http(s) URL, except for `index` and `maven` repositories, where it can also be `file`.
2021-11-13 20:47:21 +01:00
If it is a maven repository the scheme can also be `file`, where
it points to a directory, which contains the maven repository.