How to create Fake REST API for testing and mocking using json-server

preview_player
Показать описание
Hi, I am Raghav and today we will learn -
How to create fake REST API
Testing
Mocking
json-server
How to run GET, POST, PUT, PATCH, DELETE requests

npm install -g json-server

Note - in case json-server does not install, try with -g option i.e. npm install -g json-server
OR you can run cmd prompt as administrator and try again

________ ONLINE COURSES TO LEARN ________

------------ UI TESTING ------------

------------ API TESTING ------------

------------ MOBILE TESTING ------------

------------ CI | CD | DEVOPS ------------

-------------VIRTUALISATION-------------
------------ VERSION CONTROL SYSTEM ------------

------------ PERFORMANCE TESTING ------------

------------ PROGRAMMING ------------

------------ IDE ------------

------------ BUILD TOOLS ------------

------------ OTHERS ------------

Keep Learning,
Raghav

----------- Connect with Raghav ------------

Like, Subscribe & Share
You can support my mission for education by sharing this knowledge and helping as many people as you can

Рекомендации по теме
Комментарии
Автор

It was excellent, Raghav. I had been scratching my head about the API for 6 months, watching many videos but couldn't grasp the concept. However, you clarified it in one video by creating it. I now understand about 95% of the API. I'll be watching your API section to cover the remaining percentage. Thank you very much from the bottom of my heart ❤️.

RifaiBukhari
Автор

Thank you so much. I never knew this existed! I'll be using this for all my apps to mock up my api.
This is a game changer for sure. Thank you Raghav. I'm thinking I can also add authentication json object "table" too.

GaryParkin
Автор

Most useful tutorial i've ever watched on youtube. This deserves way more views!

ameeriad
Автор

Excellent tutorial - Great explanation of key concepts and simple to follow, keep up the great work Raghav.

jnr
Автор

I think this is what i was looking for! thanks so much

jameswbsstudent
Автор

Hey Raghav. I appreciate for your efforts. I really learn a lot from you.

yusufkucukvatan
Автор

Hi again Raghav, video is very helpful. However could you make record which shows how to create a mock API for AWS virtual machine? How can I apply that mock implementation on AWS EC2 machine for regression tests? Thank you in advance?

yusufkucukvatan
Автор

Thanks alot Raghav, Surely this is a great content. keep up the good work👌

pavanshetkar
Автор

Hi Raghav, Thank you so much.
This video made my work so simple and also got work around.
Thanks for your efforts!

venkysaikumar
Автор

Wowww This is the Best No Need to depend on Public APIs

nemakalsudhirchakravarthi
Автор

The best channel for Testing, keep rocking brother

kavibharathip
Автор

hi, Raghav can you please make a tutorial about the postman mock server?

engalibadouin
Автор

i like it very much way of your communication 👍 pls continue 👍

praveenkumarlk
Автор

another perfect well explained module.Thanks sir

mzamomahaeng
Автор

As alway, this is very nice.... its been while, I saw your video, Super again.... Thank you very much for the video

rajaravi
Автор

Thanks for explaining in a simplest way, can you please advise how can we create complex json structure based data for this fake API?

charanjitsingh
Автор

This is simply Amazing!!!! Thanks Raghav :)

prithvimuniraj
Автор

Awesome Raghav Seriously you solved my problem. And I have a small question, The REST API you created, shall we create it by using swagger, and how can we generate server and client in swagger ?

rajasekharmaddigalla
Автор

Hi Rghav, Thank for this session, but can we use same thing using XML - server ??

abdulquadir-kg
Автор

Really appriciate your efforts and time. Great work.... Keep it up....

sushanttavrawala