23 references to MapPost
Aspire.Dashboard (5)
DashboardEndpointsBuilder.cs (2)
30builder = endpoints.MapPost("/api/validatetoken", async (string token, HttpContext httpContext, IOptionsMonitor<DashboardOptions> dashboardOptions) => 54endpoints.MapPost("/authentication/logout", () => TypedResults.SignOut(authenticationSchemes: [CookieAuthenticationDefaults.AuthenticationScheme, OpenIdConnectDefaults.AuthenticationScheme])).SkipStatusCodePages();
Otlp\Http\OtlpHttpEndpointsBuilder.cs (3)
51group.MapPost("logs", static (MessageBindable<ExportLogsServiceRequest> request, OtlpLogsService service) => 59group.MapPost("traces", static (MessageBindable<ExportTraceServiceRequest> request, OtlpTraceService service) => 67group.MapPost("metrics", (MessageBindable<ExportMetricsServiceRequest> request, OtlpMetricsService service) =>
Aspire.Dashboard.Tests (1)
Integration\MockOpenIdAuthority.cs (1)
77endpoints.MapPost(
CatalogDb (1)
ResetDbExtensions.cs (1)
16app.MapPost("/reset-db", async ([FromHeader(Name = "Authorization")] string? key, CatalogDbContext dbContext, CatalogDbInitializer dbInitializer, CancellationToken cancellationToken) =>
EventHubsApi (1)
Program.cs (1)
19app.MapPost("/message", async (Stream body, EventHubProducerClient producerClient) =>
Keycloak.Web (1)
LoginLogoutEndpointRouteBuilderExtensions.cs (1)
16group.MapPost("/logout", () => TypedResults.SignOut(new AuthenticationProperties { RedirectUri = "/" },
Microsoft.AspNetCore.Identity (8)
IdentityApiEndpointRouteBuilderExtensions.cs (8)
57routeGroup.MapPost("/register", async Task<Results<Ok, ValidationProblem>> 90routeGroup.MapPost("/login", async Task<Results<Ok<AccessTokenResponse>, EmptyHttpResult, ProblemHttpResult>> 122routeGroup.MapPost("/refresh", async Task<Results<Ok<AccessTokenResponse>, UnauthorizedHttpResult, SignInHttpResult, ChallengeHttpResult>> 193routeGroup.MapPost("/resendConfirmationEmail", async Task<Ok> 206routeGroup.MapPost("/forgotPassword", async Task<Results<Ok, ValidationProblem>> 225routeGroup.MapPost("/resetPassword", async Task<Results<Ok, ValidationProblem>> 260accountGroup.MapPost("/2fa", async Task<Results<Ok<TwoFactorResponse>, ValidationProblem, NotFound>> 348accountGroup.MapPost("/info", async Task<Results<Ok<InfoResponse>, ValidationProblem, NotFound>>
MySql.ApiService (1)
Program.cs (1)
44app.MapPost("/catalog", async (CatalogItem item, MySqlConnection db) =>
Nats.ApiService (2)
Program.cs (2)
29app.MapPost("/stream", async (StreamConfig config, INatsJSContext jetStream) => 42app.MapPost("/publish/", async (AppEvent @event, INatsJSContext jetStream) =>
OrleansClient (1)
Program.cs (1)
17app.MapPost("/counter/{grainId}", async (IClusterClient client, string grainId) =>
SignalRServerlessWeb (1)
Program.cs (1)
39app.MapPost($"{hubName}/negotiate", async (string? userId) =>
TestProject.ServiceA (1)
Program.cs (1)
12app.MapPost("/status/{statusCode:int}", (int statusCode) => Results.StatusCode(statusCode));