Dynamic JSON API Generator Guide

Getting Started

Our Dynamic JSON API Generator allows you to create custom API endpoints that serve JSON data based on your defined structure. Follow these steps to create and use your custom API:

  • 1. Define Your JSON Structure

    Use our visual editor to create your desired JSON structure.

  • 2. Generate API Endpoint

    Click 'Create API' to generate your unique API endpoint.

  • 3. Use Your API

    Use the provided endpoint to interact with your custom API.

API Usage Examples
Base URL
https://dynamic-json-api-generator-platform.vercel.app/api/generate-json/
Getting All Resources
fetch('https://dynamic-json-api-generator-platform.vercel.app/api/generate-json/your-slug')
  .then((response) => response.json())
  .then((json) => console.log(json));
Example Output:
[
  {
    "id": "8845adef-1f06-47a0-933d-afeff2fd99f1",
    "templateId": "a1335cde-58a8-4672-8e39-e82bc82d472e",
    "data": {
      "id": "d400c2b5-...
Creating a Resource
fetch('https://dynamic-json-api-generator-platform.vercel.app/api/generate-json/your-slug', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    data: {
      id: "d400c2b5-6c0b-498d-8aec-ae48b68c96e9",
      title: "Constans cohibeo delego candidus",
      description: "Sublime communis a ocer crur suadeo vito coruscus comedo."
      body: {
       id: "7a882d3c-532f-4f08-8f06-1033e98f02ca",
      image: "https://loremflickr.com/640/480?lock=8862728009547776",
      gender: true
      },
    }
  })
})
.then((response) => response.json())
.then((json) => console.log(json));
Example Output:
{
  "id": "8845adef-1f06-47a0-933d-afeff2fd99f1",
  "templateId": "a1335cde-58a8-4672-8e39-e82bc82d472e",
  "data": {
    "id": "d400c2b5-6c0b-498d-8a...
Getting a Specific Resource
fetch('https://dynamic-json-api-generator-platform.vercel.app/api/generate-json/your-slug/unique-id-1')
  .then((response) => response.json())
  .then((json) => console.log(json));
Example Output:
{
  "id": "8845adef-1f06-47a0-933d-afeff2fd99f1",
  "templateId": "a1335cde-58a8-4672-8e39-e82bc82d472e",
  "data": {
    "id": "d400c2b5-6c0b-498d-8a...
Additional Operations
  • Deleting All Resources (DELETE)

    PUT /api/generate-json/your-slug

  • Updating a Resource (PUT)

    PUT /api/generate-json/your-slug/unique-id

  • Deleting a Resource (DELETE)

    DELETE /api/generate-json/your-slug/unique-id


© 2024 Dynamic JSON API Generator