Forum Discussion

Stoplight's avatar
Stoplight
Community Manager
5 months ago

Is it possible to change the default mock server provided by Stoplight?

Originally posted by user e.puzenkov to the Stoplight Community on 10/26/2022 at 07:21 ET.

Hi all, I have a question regarding API Base URLs. Is it possible to change the default mock server provided by Stoplight? I can't find a way to update it.

Also, is it possible to change the server naming? For example, we would like to change the name "Live Server" to "Production", and "Mock Server" to "Sandbox".

Thanks in advance.

3 Replies

  • Stoplight's avatar
    Stoplight
    Community Manager

    Caitlin (Staff) [10/26/2022 - 15:39 ET]

    Hi @e.puzenkov, it is not possible to change the default mock server. You can update the names of the other servers in the API Overview section of your spec file as seen in the screencap

    • Stoplight's avatar
      Stoplight
      Community Manager

      e.puzenkov (OP) [10/27/2022 - 05:54 ET]

      Hi, . It seems that I don't have such option. For some reason, it is impossible to provide custom names for servers if APIs were imported.

      As for the mock server - got it, thanks!

      • Stoplight's avatar
        Stoplight
        Community Manager

        Caitlin (Staff) [11/01/2022 - 16:56 ET]

        Hi would you be able to message me the file you're using? I'll see if I can recreate on my side