mirror of
https://github.com/unclshura/BlazorOpenApi.git
synced 2025-12-21 09:51:53 +00:00
Compare commits
2 Commits
16c5d2e85b
...
084346d884
| Author | SHA1 | Date | |
|---|---|---|---|
| 084346d884 | |||
| b93c2db94d |
33
README.md
33
README.md
@ -9,9 +9,17 @@ It is a pure Blazor implementation.
|
||||
|
||||
## Screenshots
|
||||
|
||||
{ width=250px }
|
||||
{ width=250px }
|
||||
]{ width=250px }
|
||||
Light theme:
|
||||
|
||||

|
||||
|
||||
Dark Theme:
|
||||
|
||||

|
||||
|
||||
Examples generation:
|
||||
|
||||

|
||||
|
||||
## Installation
|
||||
|
||||
@ -20,12 +28,15 @@ You can install the package from NuGet:
|
||||
dotnet add package BlazorOpenApi
|
||||
```
|
||||
|
||||
Source code:
|
||||
```bash
|
||||
Github: https://github.com/unclshura/BlazorOpenApi
|
||||
HTTPS: https://github.com/unclshura/BlazorOpenApi.git
|
||||
SSH: git@github.com:unclshura/BlazorOpenApi.git
|
||||
```
|
||||
## Source code
|
||||
|
||||
|What |Where |
|
||||
|--------|------------------------------------------------|
|
||||
| Github | https://github.com/unclshura/BlazorOpenApi |
|
||||
| HTTPS | https://github.com/unclshura/BlazorOpenApi.git |
|
||||
| SSH | git@github.com:unclshura/BlazorOpenApi.git |
|
||||
| NuGet | https://www.nuget.org/packages/BlazorOpenApi/ |
|
||||
|
||||
|
||||
## Features
|
||||
|
||||
@ -44,12 +55,12 @@ To use the component, add the following line to your `_Imports.razor` file:
|
||||
@using BlazorOpenApi.Controls
|
||||
```
|
||||
Then, you can use the component in your Blazor application:
|
||||
```razor
|
||||
```c#
|
||||
<OpenAPIUIControl Url="https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/examples/v3.0/petstore.yaml" />
|
||||
```
|
||||
|
||||
To customize the palette you can use something like this:
|
||||
```razor
|
||||
```c#
|
||||
<OpenAPIUIControl Url="@Url" Palette="@TestPalette"/>
|
||||
|
||||
@code {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user