Basic Usage
How to Use the REST API
Basic Usage
fetch('https://r-sock.com/api/fetch/users', {
method: 'POST',
headers: {
'Authorization': 'Bearer your_token',
'Content-Type': 'application/json'
},
body: JSON.stringify({ id: 3 })
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));Example Data
Table : users
id (bigint)
name (varchar2)
age (int)
point (int)
Fetch Operation
End-point
Post Data
Example
Result
Create Operation
End-point
Post Data
Example
Result
Update Operation
End-point
Post Data
Example
Result
Delete Operation
End-point
Post Data
Example
Result
Last updated