DynamicEndpoints.Yaml 0.4.0

dotnet add package DynamicEndpoints.Yaml --version 0.4.0
                    
NuGet\Install-Package DynamicEndpoints.Yaml -Version 0.4.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DynamicEndpoints.Yaml" Version="0.4.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DynamicEndpoints.Yaml" Version="0.4.0" />
                    
Directory.Packages.props
<PackageReference Include="DynamicEndpoints.Yaml" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DynamicEndpoints.Yaml --version 0.4.0
                    
#r "nuget: DynamicEndpoints.Yaml, 0.4.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package DynamicEndpoints.Yaml@0.4.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DynamicEndpoints.Yaml&version=0.4.0
                    
Install as a Cake Addin
#tool nuget:?package=DynamicEndpoints.Yaml&version=0.4.0
                    
Install as a Cake Tool

DynamicEndpoints.Yaml

YAML support for DynamicEndpoints: export and import endpoint definitions as YAML (handy for GitOps reviews), and import OpenAPI documents written in YAML. Built on YamlDotNet.

License: MIT

builder.Services.AddDynamicEndpoints().AddYamlFormat();

The admin API then speaks YAML too:

curl https://api.example.com/api/admin/endpoints/export?format=yaml > endpoints.yaml
curl -X POST "https://api.example.com/api/admin/endpoints/import?mode=sync&dryRun=true" \
  -H "Content-Type: application/yaml" --data-binary @endpoints.yaml
curl -X POST "https://api.example.com/api/admin/endpoints/import/openapi?dryRun=true" \
  -H "Content-Type: application/yaml" --data-binary @petstore.yaml
format: dynamic-endpoints/v1
endpoints:
  - id: 0199a4f2-3c1e-7b4a-9d2e-5f6a7b8c9d0e
    method: GET
    route: /orders/{id}
    processor: orders
    parameters:
      - name: id
        source: Route
        type: Integer
        required: true

In code, DynamicEndpointsYaml.Parse(yaml) and DynamicEndpointsYaml.Write(node) convert between YAML and JsonNode. Plain scalars follow the YAML 1.2 core schema, and strings that would read as something else ("true", "007") are written quoted, so a round trip never changes a type. The dynamic-endpoints CLI reads and writes .yaml files with this package.

๐Ÿ“– Documentation ยท ๐Ÿ“ Changelog

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.4.0 130 10/2/2026