TMPAPI

Getting Started Annotations Placeholders API URL Request Response Service Spec

Getting Started

https://www.tmpapi.dev/data/data-name is a JSON data source in an APIs.

And an API base URL is https://api.tmpapi.dev/rest for a REST API, and https://api.tmpapi.dev/graphql for a GraphQL API.

To mock up API, coding JSON directly on the online editor, or import existing JSON file from file selection dialog, or drag and drop JSON file into the editor area.

The server will send a response JSON when the API called, it's based on the JSON data source.

Data source

{
  "user": {
    "id": "1",
    "name": "User"
  }
}

Request

POST https://api.tmpapi.dev/graphql/data-name
Content-Type: application/graphql

{
  user {
    id
    name
  }
}

Response

200 OK
Content-Type: application/json; charset=utf-8

{
  "data": {
    "user": {
      "id": "1",
      "name": "User"
    }
  }
}

For quick mock up, you can add convenient annotations and placeholders in a JSON.

Check about an API endpoint and how to call.

For a REST API, you can configure a response JSON format.