Skip to content

Commit

Permalink
docs: Add Reference documentation (#114)
Browse files Browse the repository at this point in the history
* docs: Add Reference documentation
* docs: Add submodule
  • Loading branch information
NikiforovAll authored Jun 3, 2024
1 parent 69cc022 commit 5445167
Show file tree
Hide file tree
Showing 9 changed files with 53 additions and 10 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "docs-reference"]
path = docs-reference
url = https://github.com/NikiforovAll/keycloak-authorization-services-dotnet-docs
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ Easy Authentication and Authorization with Keycloak in .NET.

## Documentation

See the docs: <https://nikiforovall.github.io/keycloak-authorization-services-dotnet>
For Developer Documentation see: <https://nikiforovall.github.io/keycloak-authorization-services-dotnet>

### API Reference

See: <https://nikiforovall.github.io/keycloak-authorization-services-dotnet-docs>

## Getting Started

Expand Down
3 changes: 2 additions & 1 deletion docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ export default withMermaid({
nav: [
{ text: 'Home', link: '/' },
{ text: 'Getting Started', link: '/introduction' },
{ text: 'Migration', link: '/migration' },
{ text: 'Examples', link: 'examples/auth-getting-started' },
{ text: 'Migration', link: '/migration' },
{ text: 'API Reference', link: 'https://nikiforovall.github.io/keycloak-authorization-services-dotnet-docs/' },
{ text: 'Blog', link: 'blogs' },
{ text: 'Join Chat', link: 'https://discord.gg/S449PhBPRQ' },
],
Expand Down
11 changes: 8 additions & 3 deletions docs/admin-rest-api/admin-api-kiota.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@

This `KeycloakAdminApiClient` was generated using the *Kiota* library.

```bash
dotnet add package Keycloak.AuthServices.Sdk.Kiota
```
> [!TIP]
> API Reference: [Keycloak.AuthServices.Sdk.Kiota](https://nikiforovall.github.io/keycloak-authorization-services-dotnet-docs/api-reference/Keycloak.AuthServices.Sdk.Kiota.ServiceCollectionExtensions.html)
> [!NOTE]
> Kiota is a powerful command line tool developed by Microsoft that simplifies the process of generating API clients for calling any OpenAPI-described API. See [OpenAPI Support](/admin-rest-api/admin-api-openapi) for more details.
## Getting Started

```bash
dotnet add package Keycloak.AuthServices.Sdk.Kiota
```

```csharp
/// <summary>
/// Adds <see cref="KeycloakAdminApiClient"/> for Keycloak Admin API.
Expand Down
8 changes: 7 additions & 1 deletion docs/admin-rest-api/group-client.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# IKeycloakGroupClient
# API Reference - IKeycloakGroupClient

API Reference docs: [Keycloak.AuthServices.Sdk.Admin.IKeycloakGroupClient](https://nikiforovall.github.io/keycloak-authorization-services-dotnet-docs/api-reference/Keycloak.AuthServices.Sdk.Admin.IKeycloakGroupClient.html)

::: details IKeycloakGroupClient.cs

<<< @/../src/Keycloak.AuthServices.Sdk/Admin/IKeycloakGroupClient.cs

:::
8 changes: 7 additions & 1 deletion docs/admin-rest-api/realm-client.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# IKeycloakRealmClient
# API Reference - IKeycloakRealmClient

API Reference docs: [Keycloak.AuthServices.Sdk.Admin.IKeycloakRealmClient](https://nikiforovall.github.io/keycloak-authorization-services-dotnet-docs/api-reference/Keycloak.AuthServices.Sdk.Admin.IKeycloakRealmClient.html)

::: details IKeycloakRealmClient.cs

<<< @/../src/Keycloak.AuthServices.Sdk/Admin/IKeycloakRealmClient.cs

:::
8 changes: 7 additions & 1 deletion docs/admin-rest-api/user-client.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# IKeycloakUserClient
# API Reference - IKeycloakUserClient

API Reference docs: [Keycloak.AuthServices.Sdk.Admin.IKeycloakUserClient](https://nikiforovall.github.io/keycloak-authorization-services-dotnet-docs/api-reference/Keycloak.AuthServices.Sdk.Admin.IKeycloakUserClient.html)

::: details IKeycloakUserClient.cs

<<< @/../src/Keycloak.AuthServices.Sdk/Admin/IKeycloakUserClient.cs

:::
8 changes: 7 additions & 1 deletion docs/authorization/resources-client-reference.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# IAuthorizationServerClient
# API Reference - IAuthorizationServerClient

API Reference docs: [Keycloak.AuthServices.Authorization.AuthorizationServer.IAuthorizationServerClient](https://nikiforovall.github.io/keycloak-authorization-services-dotnet-docs/api-reference/Keycloak.AuthServices.Authorization.AuthorizationServer.IAuthorizationServerClient.html)

::: details IAuthorizationServerClient.cs

<<< @/../src/Keycloak.AuthServices.Authorization/AuthorizationServer/IAuthorizationServerClient.cs

:::
8 changes: 7 additions & 1 deletion docs/protection-api/protected-resource-client.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# IKeycloakProtectedResourceClient
# API Reference - IKeycloakProtectedResourceClient

API Reference docs: [Keycloak.AuthServices.Sdk.Protection.IKeycloakProtectedResourceClient](https://nikiforovall.github.io/keycloak-authorization-services-dotnet-docs/api-reference/Keycloak.AuthServices.Sdk.Protection.IKeycloakProtectedResourceClient.html)

::: details IKeycloakProtectedResourceClient.cs

<<< @/../src/Keycloak.AuthServices.Sdk/Protection/IKeycloakProtectedResourceClient.cs

:::

0 comments on commit 5445167

Please sign in to comment.