mirror of
https://github.com/unclshura/BlazorOpenApi.git
synced 2025-12-21 18:01:53 +00:00
Compare commits
No commits in common. "084346d88418c6a024ef8a772308b5a6d3e07558" and "16c5d2e85b2d35329d3f0fe23fd45f7c6a8527b8" have entirely different histories.
084346d884
...
16c5d2e85b
33
README.md
33
README.md
@ -9,17 +9,9 @@ It is a pure Blazor implementation.
|
|||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||
Light theme:
|
{ width=250px }
|
||||||
|
{ width=250px }
|
||||||

|
]{ width=250px }
|
||||||
|
|
||||||
Dark Theme:
|
|
||||||
|
|
||||||

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

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