Display and test openapi.yaml file — Midjourney Tips &…
    Neura MarketNeura Market/Midjourney
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityMidjourneyMidjourney
    DeepSeekDeepSeekCoPilotCoPilotStable DiffusionStable Diffusion
    View All Directories
    OverviewPromptsBlogVideosGuidesCoursesCommunityStylesTrending
    MidjourneyBlogDisplay and test openapi.yaml file
    Back to Blog
    Display and test openapi.yaml file
    api

    Display and test openapi.yaml file

    Gabriel Weidmann April 16, 2026
    0 views

    From a partner company I got a openapi.yaml file to evaluate their api for our use cases. Mostly I...

    From a partner company I got a openapi.yaml file to evaluate their api for our use cases. Mostly I know those files from working with ASP.NET Core Apis + Swagger UI, but this time it was just a standalone file.

    I got the file and an api key for the sandbox.

    Did not work: Use via ASP.NET Core swagger

    The first thing I was trying was to use the already known swagger ui as it's the same format.

    So:

    1. Setting up a new ASP.NET Core Api project in Visual Studio
    2. Including the latest Swashbuckle.AspNetCore nuget
    3. Putting the openapi.yaml file in the wwwroot folder
    4. Setting up the Program.cs
    var builder = WebApplication.CreateBuilder(args);
    var app = builder.Build();
    
    app.UseHttpsRedirection();
    
    // Allow to serve the unknown-by-default file type .yaml
    var provider = new FileExtensionContentTypeProvider();
    provider.Mappings[".yaml"] = "application/yaml";
    
    app.UseStaticFiles(new StaticFileOptions
    {
        ContentTypeProvider = provider,
    });
    
    app.UseSwaggerUI(c =>
    {
        c.SwaggerEndpoint("/openapi.yaml", "Imported API");
        c.RoutePrefix = "swagger";
    });
    
    app.Run();
    
    1. Accessing the api via https://localhost:7298/swagger

    This worked almost, but then CORS came around :-(

    Access to fetch at 'https://sandbox.***.com/api/...' from origin 'https://localhost:7298' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

    The problem seems to be the browser, so let's look for a non-browser-solution.

    Did work: Import in Postman

    Then I noticed that Postman got the functionality to import openapi spec files:

    Importing openapi spec in Postman

    From here it's possible to simulate the api requests just as good (or better?) as in swagger UI.

    Tags

    apiopenapitest

    Comments

    More Blog

    View all
    Five Gemma-4 models, one accelerator: what porting E2B 31B to AWS Inferentia2 taught megemma

    Five Gemma-4 models, one accelerator: what porting E2B 31B to AWS Inferentia2 taught me

    I ported the whole Gemma-4 family — E2B, E4B, 12B, 31B, and the 26B-A4B MoE — to run on...

    X
    xbill
    Hey DEV, I'm Tobore. Let's actually connect.community

    Hey DEV, I'm Tobore. Let's actually connect.

    Hey DEV, I'm Tobore. Let's actually connect. I've been on here for a while now, mostly writing and...

    L
    Laurina Ayarah
    I burned through thousands of AI tokens. Then a friend did it for freeai

    I burned through thousands of AI tokens. Then a friend did it for free

    (yep, kinda clickbait, just for the funsies 😊) At the beginning of the year, I relaunched my...

    P
    Paulo Henrique
    Claude might be saturating your machineai

    Claude might be saturating your machine

    My laptop was sitting idle with the fan at full tilt. Nothing was running that I knew of. The culprit...

    S
    Sidhant Panda
    Automated GitHub Code Reviews Using Google Geminigithubactions

    Automated GitHub Code Reviews Using Google Gemini

    I Built a Thing! TL;DR — Google Gemini-based Pull Request reviews and Issue Triaging for...

    D
    Darren "Dazbo" Lester
    What is an "agentic harness," actually?ai

    What is an "agentic harness," actually?

    I've been hearing the word "harness" thrown around a lot lately. I assumed it just meant "the IDE" or...

    T
    Tilde A. Thurium

    Stay up to date

    Get the latest Midjourney prompts, rules, and resources delivered to your inbox weekly.

    Neura Market LogoNeura Market

    Discover the best AI prompts, plugins, and resources for Midjourney and more.

    Content Types

    • Rules
    • Prompts
    • MCPs
    • Agents
    • Guides

    Platforms

    • ChatGPT Directory
    • Claude Directory
    • Gemini Directory
    • Cursor Directory
    • Grok Directory
    • Perplexity Directory
    • DeepSeek Directory
    • CoPilot Directory
    • Stable Diffusion Directory
    • Midjourney Directory
    • All Directories

    Resources

    • Blog
    • Documentation
    • Help Center
    • Marketplace

    Legal

    • Privacy Policy
    • Terms of Service

    © 2026 Neura Market. All rights reserved.

    |

    Not affiliated with any AI platform vendors.

    Neura Market

    Custom AI Systems & Services

    Our team of experienced AI builders will help build custom AI systems, workflows, and solutions for your business.

    Request custom work

    Ready-made automations for this

    Workflows from the Neura Market marketplace related to this Midjourney resource

    • Automate Data Display on Smashing Dashboard from GitHub, Docker, npm, and Product Huntn8n · $14.99 · Related topic
    • Evaluate AI Summarization Quality from YouTube Transcriptsn8n · $14.99 · Related topic
    • Create Animated Stories Using GP-4.0-mini, Midjourney, Kling, and Creatomate APIn8n · $24.99 · Related topic
    • Evaluate AI Agent Response Correctness with OpenAI and RAGAS Methodologyn8n · $14.99 · Related topic
    Browse all workflows