diff --git a/common/changes/@typespec/http/fix-useauth-link_2023-08-30-11-46.json b/common/changes/@typespec/http/fix-useauth-link_2023-08-30-11-46.json new file mode 100644 index 00000000000..e59b9bb12e2 --- /dev/null +++ b/common/changes/@typespec/http/fix-useauth-link_2023-08-30-11-46.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@typespec/http", + "comment": "", + "type": "none" + } + ], + "packageName": "@typespec/http" +} \ No newline at end of file diff --git a/docs/standard-library/http/reference/decorators.md b/docs/standard-library/http/reference/decorators.md index 623e0f09354..71892dba54a 100644 --- a/docs/standard-library/http/reference/decorators.md +++ b/docs/standard-library/http/reference/decorators.md @@ -402,7 +402,7 @@ op create(): {@statusCode: 201 | 202} ### `@useAuth` {#@TypeSpec.Http.useAuth} -Specify this service authentication. See the [documentation in the Http library][https://microsoft.github.io/typespec/standard-library/rest/authentication] for full details. +Specify this service authentication. See the [documentation in the Http library](https://microsoft.github.io/typespec/standard-library/http/authentication) for full details. ```typespec @TypeSpec.Http.useAuth(auth: {} | Union | {}[]) diff --git a/packages/http/README.md b/packages/http/README.md index b5d57c00d31..fd9b147175a 100644 --- a/packages/http/README.md +++ b/packages/http/README.md @@ -423,7 +423,7 @@ op create(): {@statusCode: 201 | 202} #### `@useAuth` -Specify this service authentication. See the [documentation in the Http library][https://microsoft.github.io/typespec/standard-library/rest/authentication] for full details. +Specify this service authentication. See the [documentation in the Http library](https://microsoft.github.io/typespec/standard-library/http/authentication) for full details. ```typespec @TypeSpec.Http.useAuth(auth: {} | Union | {}[]) diff --git a/packages/http/lib/http-decorators.tsp b/packages/http/lib/http-decorators.tsp index 20fd6d93a23..a84dd584e3b 100644 --- a/packages/http/lib/http-decorators.tsp +++ b/packages/http/lib/http-decorators.tsp @@ -202,7 +202,7 @@ extern dec server( ); /** - * Specify this service authentication. See the [documentation in the Http library][https://microsoft.github.io/typespec/standard-library/rest/authentication] for full details. + * Specify this service authentication. See the [documentation in the Http library](https://microsoft.github.io/typespec/standard-library/http/authentication) for full details. * * @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) * @example diff --git a/packages/http/src/operations.ts b/packages/http/src/operations.ts index c2c020611cf..a554bc8ce70 100644 --- a/packages/http/src/operations.ts +++ b/packages/http/src/operations.ts @@ -107,7 +107,7 @@ export function getHttpService( } /** - * @deprecated use `getAllHttpServices` or `resolveHttpOperations` manually + * @deprecated use `getAllHttpServices` instead */ export function getAllRoutes( program: Program,