1
1
Fork 1

Update API.md

Esse commit está contido em:
AJ ONeal 2017-08-02 17:43:28 -06:00
commit 25df88e297
1 arquivos alterados com 15 adições e 4 exclusões

19
API.md
Ver arquivo

@ -45,8 +45,13 @@ This file tells us where example.com publishes packages that adhere to the `waln
or if walnut were not protected by trademark and another company were to create a similar, but incompatible package
system for it, it would be `walnut.go@acme.co` or some such)
For publishers with a long list of packages you might find a URL using the template variable `:package_name` to describe
where more information about a package can be found:
For publishers with a long list of packages you might find a URL to describe
where more information about a package can be found.
Template variables
```
:package_name
```
```json
{ "package_url": "https://packages.example.com/indexes/:package_name.json"
@ -54,8 +59,14 @@ where more information about a package can be found:
}
```
For publishers with a short list of packages you might find that all of the packages are listed directly,
using the template variables `:package_name`, `:package_version`, `:payment_token`.
For publishers with a short list of packages you might find that all of the packages are listed directly.
Template variables
```
:package_name
:package_version
:payment_token
```
```json
{ "package_url": null