Postman Mock Server Tutorial for Beginners | Mock POST and GET Request in Postman | Postman Tutorial

Поделиться
HTML-код
  • Опубликовано: 3 окт 2024

Комментарии • 16

  • @TutorialsPediaVideos
    @TutorialsPediaVideos  2 года назад

    For more tutorials, visit tutorialspedia.com

  • @freemti62
    @freemti62 9 месяцев назад

    Thank you, this was the first Postman Mocking tutorial I found that explained it in a way I could follow.

  • @carl14602
    @carl14602 2 года назад +3

    Thank you so much. I was having trouble understanding how to mock POST requests, and now it makes a lot more sense

  • @karlkrasnowsky3895
    @karlkrasnowsky3895 Год назад +1

    Thanks... I was trying to figure out how these examples worked when defining the mock server. From another tutorial it seemed that you did this from the mock server directly, not the collection... so the mock is created via information that comes from the collection, not the other way around. This makes sense.

  • @gabrielacintia1135
    @gabrielacintia1135 10 месяцев назад

    Very good
    😀

  • @tao6414
    @tao6414 Год назад

    amzing! learned!I create the require throug the Mock Sever and then use it in the Collection before I watch this vadeo. now I will deleta them and create them by the way of this video

  • @ФархадТуткабаев-в8т

    NICE! Thank you for your work!

  • @igormorozov6311
    @igormorozov6311 2 года назад

    great. Thank you

  • @mohammedghabyen721
    @mohammedghabyen721 Год назад

    Thanks

  • @UknownCompiler
    @UknownCompiler 2 года назад

    Hi I am new to postman, i have a question please. do we always have to manually add queries params and their examples with the json that needs to be a response? is there another way where we can add json that has many users in one example then we can pass queries dynamically and we fetch user id without manually creating ids?

  • @igormorozov6311
    @igormorozov6311 2 года назад

    Hi Sir, could you explain please: how to get "Bad Request"- responce from the Mock Server if I send a wrong request? for instance, if I send nothing but I must to send some integer. Thank you

  • @sushantsurankar4831
    @sushantsurankar4831 2 года назад

    @Tutorials Pedia - At 18:01 why did you get 404 error whereas it should have returned 400 as the bad request. 404 is file not found.

  • @venkatsai6462
    @venkatsai6462 2 года назад

    I have a small doubt if I change anything in post request ,like if I change any single letter in the body I nee to get like error code 422 .how can I get that . actually I have stucked up there can u help me out

  • @JoseManuel-lo2ed
    @JoseManuel-lo2ed Год назад

    What am I doing wrong?
    I am trying to do this with XML, can you help me?
    Best regards.

    • @JoseManuel-lo2ed
      @JoseManuel-lo2ed Год назад

      Done, it was a stupid error to myself. Be carefull with the proxy of your organization.
      Best regards.

  • @perveziqbal135
    @perveziqbal135 Год назад

    Can I use this mock server For This Mutation in react?
    I didn't find any video for this topic, please create a video for this one
    Here's an example of a mutation that adds a new todo to the server:
    function App() {
    const mutation = useMutation({
    mutationFn: newTodo => {
    return axios.post('/todos', newTodo)
    }
    })
    return (

    {mutation.isLoading ? (
    'Adding todo...'
    ) : (

    {mutation.isError ? (
    An error occurred: {mutation.error.message}
    ) : null}
    {mutation.isSuccess ? Todo added! : null}
    {
    mutation.mutate({ id: new Date(), title: 'Do Laundry' })
    }}
    >
    Create Todo


    )}

    )
    }