Traverzer
  • About
  • Basics
    • Insert & Update
    • Fetch & Find
    • Delete
  • Reference
    • PUT
    • POST
    • DELETE
Powered by GitBook
On this page
Edit on GitHub
  1. Reference

POST

The POST method on the root of the domain will fetch record(s).

POST https://api.traverzer.tech/

Headers

Name
Value

Content-Type

application/json

Authorization

<token>

Body

Name
Type
Description

[Table Name]

string

Name of the table

[Table Name].[Field Name]

string

Value of the field

Request

fetch('https://api.traverzer.tech/', { 
    method: 'POST', 
    headers: { 
        'Content-Type': 'application/json',
        'Authorization': <token>
    }, 
    body: JSON.stringify({ 
        user: { 
            username: "johndoe", 
            email: "", 
            profile: { 
                name: "", 
                address: { 
                    state: "" 
                }, 
            } 
        } 
    }) 
});

Response

{ 
    "user": { 
        "username": "johndoe", 
        "email": "johndoe@example.com", 
        "profile": { 
            "name": "John Doe", 
            "address": { 
                "state": "CA", 
            }, 
        } 
    } 
}
{
  "error": "Invalid request"
}
{
  "error": "Not found"
}
{
  "error": "Server error"
}

Last updated 4 months ago