Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author agussuroyo

    (@agussuroyo)

    Hi @ckingsbu

    Thanks for your feedback, and I’m sorry if I didn’t understand with your queries ??

    did you want to change the /rest-api/schema to /something-else/schema ?

    you can use this filter

    
    add_filter('swagger_api_rewrite_api_base', function($uri){
        
        // change to other URI here
        // $uri = 'something-else';
        
        return $uri;
    });
    
    

    Thanks

    • This reply was modified 4 years, 10 months ago by agussuroyo.
    Plugin Author agussuroyo

    (@agussuroyo)

    Hi @ckingsbu

    Sorry, I think I missed something here, I thought you want to change the base url, but now I notice you want to add more than 1 schema right?

    and once again sorry, this plugin is not in that purpose, it’s only display Swagger API Docs for WordPress itself only, and not support for schema come from outside of WordPress installation it self

    I know as long as it’s has swagger ui 2.0 schema it should be work, but I’m not covered something like that, the only way to use it is just put schema url on the top bar of Swagger UI

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How do you change the default API URL it displays?’ is closed to new replies.