All Downloads are FREE. Search and download functionalities are using the official Maven repository.

simulators.customers-simulator.json Maven / Gradle / Ivy

The newest version!
{
  "name" : "Customers-Simulator",
  "apis" : [
    {
      "name": "Get Customer by Id",
      "operation": "GET",
      "url": "/customers/1",
      "response": {
        "status": 200,
        "body": {
          "id": 1,
          "name": "Kate",
          "sex": "Female"
        }
      }
    },
    {
      "name" : "Get Resources List",
      "operation" : "GET",
      "url" : "/customers",
      "response" : {
        "headers" : {
          "language" : "en_GB",
          "client_id" : "abcd-client-001"
        },
        "status" : 200,
        "body" : [
          {
            "id": 1,
            "name": "Kate",
            "sex": "Female"
          },
          {
            "id": 2,
            "name": "Rowland",
            "sex": "Male"
          }
        ]
      }
    },
    {
      "name": "Bare json text node. This is a JSON text node appears inside double quotes",
      "operation": "GET",
      "url": "/textnodejson/1",
      "response": {
        "status": 200,
        "body": "text-valid-json-123{}"
      }
    },
    {
      "name": "Get Customer non Json. This is a text only appears without double quotes. This is not a JSON",
      "operation": "GET",
      "url": "/nonjson/1",
      "response": {
        "status": 200,
        "rawBody": "non-json-123{}"
      }
    },
    {
      "name" : "header related",
      "operation" : "GET",
      "url" : "/api/mule/vanilla/1",
      "headers" : {
        "client_id_x" : "idx-001",
        "client_secret_x" : "sec-001"
      },
      "response" : {
        "headers" : {
          "language" : "en_GB",
          "client_id" : "abcd-client-001"
        },
        "status" : 200,
        "body" : [
          {
            "id": 1,
            "appType": "Mule",
            "sex": "You Know"
          }
        ]
      }
    }
  ]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy