JSON.WEB.ID

Multi Purpose JSON API For Your Application

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 put key then you get unique data based on key. for an example you make some applications and each application has a different key.

Namespace: /{namespace}

Like a virtual module for your apps, you can make your data unique by namespace. Ex: you make application with more then one modules, and then you can make data unique by namespace for your modules.
  • 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