Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenApiGenerator.AspNet package #27

Open
HavenDV opened this issue Jun 30, 2024 · 0 comments
Open

OpenApiGenerator.AspNet package #27

HavenDV opened this issue Jun 30, 2024 · 0 comments

Comments

@HavenDV
Copy link
Collaborator

HavenDV commented Jun 30, 2024

It is planned that it will add /nuget/v3/index.json and other endpoints to allow the server to serve a ready-made OpenAPI Rest client packaged in NuGet

builder.Services.AddRestClientNuGet();
app.MapRestClientNuGet();

And using this client would look something like this:
nuget.config

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <clear />
    <add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
    <add key="rest-client" value="https://your-server.com/nuget/v3/index.json" protocolVersion="3" />
  </packageSources>
</configuration>

References:

Need to think about versioning of this NuGet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant