🌐KR

This document describes how to utilize the Mock API App provided as a sample as a Mock Server.



▶What is Mock Server, Mock API?

▶Using SyncTree Sample Mock API

1) Configuring Simulation JSON Data for Mock API

{
  "users": [
    {
      "id": 1,
      "name": "Lee",
      "role": "developer"
    },
    {
      "id": 2,
      "name": "Kim",
      "role": "designer"
    },
    {
      "id": 3,
      "name": "Park",
      "role": "engineer"
    }
  ]
}

그림1.png

{
  "users": [
    {
      "id": 1,
      "name": "Lee",
      "role": "developer"
    },
    {
      "id": 2,
      "name": "Kim",
      "role": "designer"
    },
    {
      "id": 3,
      "name": "Park",
      "role": "engineer"
    },
    {
      "id": 4,
      "name": "Kang",
      "role": "programmer"
    }
  ]
}
{
  "users": [
    {
      "id": 1,
      "name": "Peter",
      "role": "painter"
    },
    {
      "id": 2,
      "name": "Joseph",
      "role": "singer"
    },
    {
      "id": 3,
      "name": "Paul",
      "role": "dancer"
    }
  ]
}

그림3.png

No. Description
1 Click Make Block and add the changed JSON Data to create a new block.
2 Remove existing blocks and connects created blocks.

▶Save / Build / Push