From 25df88e2971eecf53af9d447075354294af0509a Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 2 Aug 2017 17:43:28 -0600 Subject: [PATCH] Update API.md --- API.md | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/API.md b/API.md index b7ce5fc..a8c1ad5 100644 --- a/API.md +++ b/API.md @@ -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