Endpoints

GET: api/v1/user

File
Desctiption Get user details
Main menu
Sub Menu
PARAMETER TYPE REQUIRE DESCRIPTION
PARAMS
id string Y user_id
BODY
any string Y none
integer
array<object>
boolean
QUERY
page string default = 0
limit string default = 10
  1. Get from table users
SELECT * FROM users WHERE id = params.id

Response: “get_user_success”

return {
	data: {
		id: 1,
		name: "string"
	}
	code: 200,
	message: "success"
}

Errors

This API uses the following error codes:

Code Error Message
201 Missing or Invalid data Missing site_id
202 The requested resource was not found. not found destroy correspondence doc
403 catch error catch error: + message