@@ -32,8 +32,12 @@ root URL:
32
32
* ` docs(rootUrl, path) ` -> ` String `
33
33
* ` exchangeReference(rootUrl, service, version) ` -> ` String `
34
34
* ` schema(rootUrl, service, schema) ` -> ` String `
35
+ * ` apiManifestSchema(rootUrl, version) ` -> ` String `
36
+ * ` apiReferenceSchema(rootUrl, version) ` -> ` String `
37
+ * ` exchangesReferenceSchema(rootUrl, version) ` -> ` String `
38
+ * ` metadataMetaschema(rootUrl) ` -> ` String `
35
39
* ` ui(rootUrl, path) ` -> ` String `
36
- * ` servicesManifest (rootUrl)` -> ` String `
40
+ * ` apiManifest (rootUrl)` -> ` String `
37
41
* ` testRootUrl() ` -> ` String `
38
42
* ` withRootUrl(rootUrl) ` -> ` Class ` instance for above methods
39
43
@@ -52,7 +56,7 @@ libUrls.schema(rootUrl, 'auth', 'v1/foo.yml'); // Note that schema names have ve
52
56
libUrls .apiReference (rootUrl, ' auth' , ' v1' );
53
57
libUrls .exchangeReference (rootUrl, ' auth' , ' v1' );
54
58
libUrls .ui (rootUrl, ' foo/bar' );
55
- libUrls .servicesManifest (rootUrl);
59
+ libUrls .apiManifest (rootUrl);
56
60
libUrls .docs (rootUrl, ' foo/bar' );
57
61
```
58
62
@@ -67,7 +71,7 @@ urls.schema('auth', 'v1/foo.yml');
67
71
urls .apiReference (' auth' , ' v1' );
68
72
urls .exchangeReference (' auth' , ' v1' );
69
73
urls .ui (' foo/bar' );
70
- urls .servicesManifest ();
74
+ urls .apiManifest ();
71
75
urls .docs (' foo/bar' );
72
76
```
73
77
@@ -103,8 +107,12 @@ func APIReference(rootURL string, service string, version string) string
103
107
func Docs(rootURL string, path string) string
104
108
func ExchangeReference(rootURL string, service string, version string) string
105
109
func Schema(rootURL string, service string, name string) string
110
+ func APIManifestSchema(rootURL string, version string) string
111
+ func APIReferenceSchema(rootURL string, version string) string
112
+ func ExchangesReferenceSchema(rootURL string, version string) string
113
+ func MetadataMetaschema(rootURL string) string
106
114
func UI(rootURL string, path string) string
107
- func ServicesManifest (rootURL string) string
115
+ func APIManifest (rootURL string) string
108
116
```
109
117
110
118
Install with:
@@ -129,10 +137,14 @@ import taskcluster_urls
129
137
130
138
taskcluster_urls.api(root_url, 'auth', 'v1', 'foo/bar')
131
139
taskcluster_urls.schema(root_url, 'auth', 'v1/foo.yml') # Note that schema names have versions in them
140
+ taskcluster_urls.api_manifest_schema(root_url, 'v1')
141
+ taskcluster_urls.api_reference_schema(root_url, 'v1')
142
+ taskcluster_urls.exchanges_reference_schema(root_url, 'v1')
143
+ taskcluster_urls.metadata_metaschema(root_url, 'v1')
132
144
taskcluster_urls.api_reference(root_url, 'auth', 'v1')
133
145
taskcluster_urls.exchange_reference(root_url, 'auth', 'v1')
134
146
taskcluster_urls.ui(root_url, 'foo/bar')
135
- taskcluster_urls.servicesManifest (root_url)
147
+ taskcluster_urls.apiManifest (root_url)
136
148
taskcluster_urls.docs(root_url, 'foo/bar')
137
149
138
150
And for testing,
@@ -183,10 +195,14 @@ import org.mozilla.taskcluster.urls.*;
183
195
184
196
String fooBarAPI = urlProvider.api("auth", "v1", "foo/bar");
185
197
String fooSchema = urlProvider.schema("auth", "v1/foo.yml"); // Note that schema names have versions in them
198
+ String apiSchema = urlProvider.apiReferenceSchema("v1");
199
+ String exchangesSchema = urlProvider.exchangesReferenceSchema("v1");
200
+ String manifestSchema = urlProvider.apiManifestSchema("v1");
201
+ String metaschema = urlProvider.metadataMetaschema();
186
202
String authAPIRef = urlProvider.apiReference("auth", "v1");
187
203
String authExchangesRef = urlProvider.exchangeReference("auth", "v1");
188
204
String uiFooBar = urlProvider.ui("foo/bar");
189
- String servicesManifest = urlProvider.servicesManifest ();
205
+ String apiManifest = urlProvider.apiManifest ();
190
206
String docsFooBar = urlProvider.docs("foo/bar");
191
207
192
208
...
0 commit comments