@typespec/http 0.48.0-dev.4 → 0.48.0-dev.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/src/operations.d.ts +1 -1
- package/dist/src/operations.js +1 -1
- package/lib/http-decorators.tsp +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -423,7 +423,7 @@ op create(): {@statusCode: 201 | 202}
|
|
|
423
423
|
|
|
424
424
|
#### `@useAuth`
|
|
425
425
|
|
|
426
|
-
Specify this service authentication. See the [documentation in the Http library]
|
|
426
|
+
Specify this service authentication. See the [documentation in the Http library](https://microsoft.github.io/typespec/standard-library/http/authentication) for full details.
|
|
427
427
|
|
|
428
428
|
```typespec
|
|
429
429
|
@TypeSpec.Http.useAuth(auth: {} | Union | {}[])
|
package/dist/src/operations.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export declare function listHttpOperationsIn(program: Program, container: Operat
|
|
|
20
20
|
export declare function getAllHttpServices(program: Program, options?: RouteResolutionOptions): [HttpService[], readonly Diagnostic[]];
|
|
21
21
|
export declare function getHttpService(program: Program, serviceNamespace: Namespace, options?: RouteResolutionOptions): [HttpService, readonly Diagnostic[]];
|
|
22
22
|
/**
|
|
23
|
-
* @deprecated use `getAllHttpServices`
|
|
23
|
+
* @deprecated use `getAllHttpServices` instead
|
|
24
24
|
*/
|
|
25
25
|
export declare function getAllRoutes(program: Program, options?: RouteResolutionOptions): [HttpOperation[], readonly Diagnostic[]];
|
|
26
26
|
export declare function reportIfNoRoutes(program: Program, routes: HttpOperation[]): void;
|
package/dist/src/operations.js
CHANGED
|
@@ -53,7 +53,7 @@ export function getHttpService(program, serviceNamespace, options) {
|
|
|
53
53
|
return diagnostics.wrap(service);
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
|
-
* @deprecated use `getAllHttpServices`
|
|
56
|
+
* @deprecated use `getAllHttpServices` instead
|
|
57
57
|
*/
|
|
58
58
|
export function getAllRoutes(program, options) {
|
|
59
59
|
const [services, diagnostics] = getAllHttpServices(program, options);
|
package/lib/http-decorators.tsp
CHANGED
|
@@ -202,7 +202,7 @@ extern dec server(
|
|
|
202
202
|
);
|
|
203
203
|
|
|
204
204
|
/**
|
|
205
|
-
* Specify this service authentication. See the [documentation in the Http library]
|
|
205
|
+
* Specify this service authentication. See the [documentation in the Http library](https://microsoft.github.io/typespec/standard-library/http/authentication) for full details.
|
|
206
206
|
*
|
|
207
207
|
* @param auth Authentication configuration. Can be a single security scheme, a union(either option is valid authentication) or a tuple(Must use all authentication together)
|
|
208
208
|
* @example
|