Mock Servers | The Exploratory

Sdílet
Vložit
  • čas přidán 22. 08. 2024

Komentáře • 35

  • @johnnymeza6639
    @johnnymeza6639 Před 2 lety +3

    Nice I'm in the situation where our backend & frontend devs are developing in parallel. Last sprint I was manually writing mock functions in the frontend based on the openapi yaml, but I think this can save a lot of time. Thanks for the video I'm gonna try it out.

  •  Před 2 lety +1

    Wow that's awesome feature that I did not realize until today. I'll use it a lot from now on 100%! Thanks for this great product!

  • @FabianoRomanBeraldifrb
    @FabianoRomanBeraldifrb Před 2 lety +2

    This is exactly that I was looking for \ o /

  • @senthilnatarajan2377
    @senthilnatarajan2377 Před rokem +1

    Very well Explained the concepts

  • @adammoe605
    @adammoe605 Před rokem +1

    straight to the point

  • @vaibhavsaini2720
    @vaibhavsaini2720 Před 4 měsíci

    we can also use Faux API platform, which gives us a lot of space to store values in APis and access it anytime we want, without any limits

  • @jimmylu71
    @jimmylu71 Před 2 lety

    Thank You SO MUCH for this awsome tutorial!!!

  • @user-be5mq7oy3w
    @user-be5mq7oy3w Před 5 měsíci

    awesome

  • @Sergei_youtube.
    @Sergei_youtube. Před 7 měsíci

    thanks a lot for your video!

  • @creapermann6356
    @creapermann6356 Před 2 lety +1

    Great video

  • @yo1414
    @yo1414 Před 2 lety

    Nice tutorial - Thank you and very helpful!

  • @devOmarAZ
    @devOmarAZ Před 2 lety +1

    Thx very much

  • @altermrabs8167
    @altermrabs8167 Před rokem

    It was helpfull, tnx!

  • @alikaya8115
    @alikaya8115 Před 2 lety

    Great thank you

  • @mariomachiorello9784
    @mariomachiorello9784 Před 2 lety +1

    This video was super helpful! Thank you so much. Now, is it also possible to add a POST, PUT or PATCH request and the data in the body would be saved to the mock server and could then be in the response when the later a GET request is made?

    • @postman
      @postman  Před 2 lety

      Examples inform your mock server. An example is a paired request and response. So you can update the HTTP method and request or response body to save as an example. learning.postman.com/docs/designing-and-developing-your-api/mocking-data/mocking-with-examples/

    • @sergiigrebeniuk4446
      @sergiigrebeniuk4446 Před 2 lety

      but there's no way to make that happen automatically when the server receives POST, PUT, or PATCH requests, right?
      For example:
      when GET /todos returns [],
      and then a POST /todo {"text": "todo1"} happens,
      GET /todos should start returning [{"id": 1, "text": "todo1"}]
      I saw that it's possible with Tests, but is it possible when the mock server is used for client-side development?

  • @pargatsingh5261
    @pargatsingh5261 Před rokem +1

    I want to copy some field from the request to the mock response every time my mock service is hit. For instance, trackingID from request payload should be sent back as part of mock response. How can we do that?

    • @postman
      @postman  Před rokem +1

      Mock server responses can be randomly generated but they can't send back a specific thing. If you're looking to echo back requests you may want to use the Postman Echo API: postman-echo.com/

  • @tdekoekkoek
    @tdekoekkoek Před 7 měsíci

    When I click "New" none of the options in the video are present. There is no "mock server" option

  • @MrMalcovic
    @MrMalcovic Před 2 lety

    I'm going to create a mock called "flags" ;-)

  • @kokosda
    @kokosda Před rokem

    Please, add a programmable way of making mock responses on mocking servers. I need a simple proxy functionality that accepts a request and redirects it to another server. I can't do it in current implementation.

    • @postman
      @postman  Před rokem

      You can use the Postman API to do that. Here are a bunch of examples: medium.com/better-practices/https-medium-com-postman-engineering-fake-it-till-you-make-it-mocks-for-agile-development-f4d050cad694

  • @ricardinhoakj6176
    @ricardinhoakj6176 Před 2 lety +1

    Hi. Have any limitation, using free version of Postman? Ty

    • @postman
      @postman  Před 2 lety +2

      You'll be limited to 1000 mock calls/month on the free plan but it should be more than enough to get started! More info on our pricing page: www.postman.com/pricing/

    • @ricardinhoakj6176
      @ricardinhoakj6176 Před 2 lety

      @@postman ty

  • @harveyoh5411
    @harveyoh5411 Před 2 lety

    I followed the exact steps and got the following error message
    {
    "error": {
    "name": "invalidCredentialsError",
    "header": "Unable to authenticate",
    "message": "Double check your API key and try again."
    }
    }

    • @postman
      @postman  Před 2 lety +1

      If you choose to make your mock server private, you will need to add a Postman API key in the request header: learning.postman.com/docs/designing-and-developing-your-api/mocking-data/setting-up-mock/#configuring-mock-details

    • @harveyoh5411
      @harveyoh5411 Před 2 lety

      @@postman thanks for a quick reply! I will try again with the public setting

  • @petermisovic5194
    @petermisovic5194 Před 2 lety

    Hm, why do not introduce POST example? :(

    • @postman
      @postman  Před rokem

      Mock POST requests will work in a pretty similar way. You can find more info on the matching algorithm on the Learning Center: learning.postman.com/docs/designing-and-developing-your-api/mocking-data/matching-algorithm/

  • @AhsanAli-dw8iv
    @AhsanAli-dw8iv Před rokem

    I don't find the the default option that you have @3:59

    • @postman
      @postman  Před rokem +1

      This should be created when you set the example response body (see at 1:55). If you're still having an issue please ask your question on the community forum: community.postman.com

    • @AhsanAli-dw8iv
      @AhsanAli-dw8iv Před rokem

      @@postman thanks, my issue resolved