Mock Servers | The Exploratory

  Рет қаралды 34,191

Postman

Postman

Күн бұрын

Getting started with Postman’s mock servers.
0:00 Mocks for designing and prototyping
1:15 Set up a mock server
3:45 Edit example responses
4:40 Call the mock server
5:20 Parallel development with mocks
5:50 Mock server call logs
Mocking with fruits code sample
www.postman.com/postman/works...
Read about it in the docs: learning.postman.com/docs/des...
Refer to an older version of Mocking in Postman here
• Fake APIs for Real Dev...

Пікірлер: 35
2 жыл бұрын
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!
@johnnymeza6639
@johnnymeza6639 2 жыл бұрын
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.
@yo1414
@yo1414 2 жыл бұрын
Nice tutorial - Thank you and very helpful!
@senthilnatarajan2377
@senthilnatarajan2377 Жыл бұрын
Very well Explained the concepts
@jimmylu71
@jimmylu71 2 жыл бұрын
Thank You SO MUCH for this awsome tutorial!!!
@FabianoRomanBeraldifrb
@FabianoRomanBeraldifrb 2 жыл бұрын
This is exactly that I was looking for \ o /
@adammoe605
@adammoe605 Жыл бұрын
straight to the point
@Sergei_youtube.
@Sergei_youtube. 6 ай бұрын
thanks a lot for your video!
@creapermann6356
@creapermann6356 2 жыл бұрын
Great video
@devOmarAZ
@devOmarAZ 2 жыл бұрын
Thx very much
@alikaya8115
@alikaya8115 2 жыл бұрын
Great thank you
@altermrabs8167
@altermrabs8167 Жыл бұрын
It was helpfull, tnx!
@user-be5mq7oy3w
@user-be5mq7oy3w 4 ай бұрын
awesome
@vaibhavsaini2720
@vaibhavsaini2720 4 ай бұрын
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
@mariomachiorello9784
@mariomachiorello9784 2 жыл бұрын
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 2 жыл бұрын
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 2 жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
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 6 ай бұрын
When I click "New" none of the options in the video are present. There is no "mock server" option
@kokosda
@kokosda Жыл бұрын
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 Жыл бұрын
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
@MrMalcovic
@MrMalcovic 2 жыл бұрын
I'm going to create a mock called "flags" ;-)
@ricardinhoakj6176
@ricardinhoakj6176 2 жыл бұрын
Hi. Have any limitation, using free version of Postman? Ty
@postman
@postman 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 2 жыл бұрын
@@postman ty
@AhsanAli-dw8iv
@AhsanAli-dw8iv Жыл бұрын
I don't find the the default option that you have @3:59
@postman
@postman Жыл бұрын
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 Жыл бұрын
@@postman thanks, my issue resolved
@harveyoh5411
@harveyoh5411 2 жыл бұрын
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 2 жыл бұрын
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 2 жыл бұрын
@@postman thanks for a quick reply! I will try again with the public setting
@petermisovic5194
@petermisovic5194 Жыл бұрын
Hm, why do not introduce POST example? :(
@postman
@postman Жыл бұрын
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/
Writing Tests in Postman - with Examples | The Exploratory
12:53
API-First Design and Development | The Exploratory
7:05
Postman
Рет қаралды 12 М.
CHOCKY MILK.. 🤣 #shorts
00:20
Savage Vlogs
Рет қаралды 14 МЛН
Mama vs Son vs Daddy 😭🤣
00:13
DADDYSON SHOW
Рет қаралды 50 МЛН
Smart Sigma Kid #funny #sigma #comedy
00:40
CRAZY GREAPA
Рет қаралды 33 МЛН
Get Started with Postman Mock Servers
18:02
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 65 М.
No-Nonsense Backend Engineering Roadmap
10:16
Codebagel
Рет қаралды 184 М.
Make your own mock API (super simple)
16:45
Code with Ania Kubów
Рет қаралды 211 М.
API Documentation | The Exploratory
9:04
Postman
Рет қаралды 46 М.
Postman Mock Server | Dummy APIs for Development and Testing
8:01
Suresh SDET Automation
Рет қаралды 2,8 М.
How to Mock RESTFUL APIs - The Easy way!
24:30
CoderOne
Рет қаралды 124 М.
Consumer-driven Contract Testing using Postman
30:47
Valentin Despa
Рет қаралды 31 М.
Good APIs Vs Bad APIs: 7 Tips for API Design
5:48
ByteByteGo
Рет қаралды 225 М.
10 WireMock - Response Templating
13:36
Codefarm
Рет қаралды 7 М.
Tag him😳💕 #miniphone #iphone #samsung #smartphone #fy
0:11
Pockify™
Рет қаралды 4,5 МЛН
Looks very comfortable. #leddisplay #ledscreen #ledwall #eagerled
0:19
LED Screen Factory-EagerLED
Рет қаралды 12 МЛН
Проверил, как вам?
0:58
Коннор
Рет қаралды 363 М.
Новые iPhone 16 и 16 Pro Max
0:42
Romancev768
Рет қаралды 2,4 МЛН
Мой новый мега монитор!🤯
1:00
Корнеич
Рет қаралды 761 М.
Bluetooth connected successfully 💯💯
0:16
Blue ice Comedy
Рет қаралды 1,6 МЛН