JSON.WEB.ID

Your Dummy Data Playground.

[How to use]
Attention, please: This content is intended solely for experimental purposes. Feel free to develop your own applications, utilizing your preferred data structure. Think of it as a 'NoSQL' approach with the convenience of REST APIs. Happy coding!
Let's play with JSON
If you want to create unique data based on x-api-key in header
If you want to create unique data based on namespace, which is in path url
Example: uuid=1bf8ce6b-48fd-4141-8bdb-557c50927339
{}
your data will be stored in database even any object format you want
{}

How to use

Header: x-api-key (optional)

If you input a key, you'll receive distinctive data corresponding to that key. To illustrate, when you create various applications, each application can be assigned a distinct key, ensuring individualized datasets

Namespace: /{namespace}

Similar to a virtual module for your applications, you can establish data uniqueness through namespaces. For instance, if you create an application with multiple modules, you have the ability to achieve data distinctiveness by implementing namespaces for each module.
Unique data is essentially stored based on the hash of (x-api-key + namespace).
  • Get Data

    Get your data from database, with namespace or query for filtering results.

    [GET] https://json.web.id/app/{namespace?}?uuid={uuid?}

    Params

    Name Type Description
    namespace (Optional) string specified namespace to create unique data
    uuid (Optional) string if you want to retrieve data with specific uuid

    Response Example

  • Store Data

    Store your data into database, with namespace (optional).

    [POST] https://json.web.id/app/{namespace?}

    Params

    Name Type Description
    namespace string specified namespace to create unique data

    Data (JSON)

                
    {
        "you_own_data": "you_own_value",
        "you_own_data2": "you_own_value2",
        "you_own_data3": "you_own_value3"
    }
                                    

    Response Example

  • Update Data

    Also you can simulate updating data by sending a PUT request to this endpoint. {uuid} is required for spesific data to be updated.

    [PUT] https://json.web.id/app/{namespace?}?uuid={uuid}

    Params

    Name Type Description
    namespace string specified namespace to create unique data
    uuid * string fill in the uuid that will be updated

    Data (JSON)

                
    {
        "you_own_data": "you_own_value_updated",
        "you_own_data2": "you_own_value_updated2",
        "you_own_data3": "you_own_value_updated3"
    }
                                    

    Response Example

  • Delete Data

    with this endpoint you can delete data. {uuid} is required for spesific data to be deleted.

    [DELETE] https://json.web.id/app/{namespace?}?uuid={uuid}

    Params

    Name Type Description
    namespace string specified namespace to create unique data
    uuid * string fill with uuid to be deleted

    Response Example

What is Mock JSON ?

Mock JSON, often referred to as dummy or sample JSON, plays a crucial role in the realm of software development and testing. It serves as a simulated representation of the data that an application is expected to send or receive. Essentially, mock JSON allows developers to mimic the responses and requests that would occur in a real-world scenario without relying on an actual database or external APIs.

In the context of web development, mock JSON becomes particularly valuable during the prototyping phase and when creating frontend components. It enables developers to simulate the structure and content of data without the need for a fully functional backend. This not only accelerates the development process but also allows frontend developers to work independently, focusing on perfecting the user interface without being hindered by backend complexities. Additionally, mock JSON proves invaluable for testing various scenarios, ensuring that the application can handle different data inputs effectively. In essence, by leveraging mock JSON, developers can streamline the development and testing processes, fostering a more efficient and collaborative development environment.

What is JSON Web Token ?

JWT, or JSON Web Token, is a compact, URL-safe means of representing claims between two parties. It is commonly used for authentication and information exchange in web development. JWTs consist of three parts: a header specifying the token type and signing algorithm, a payload containing the claims or statements about the user, and a signature ensuring the integrity of the token. This self-contained structure allows for secure transmission of information, enabling systems to verify the authenticity of the sender and ensuring the integrity of the exchanged data without the need for constant communication with the authentication server.