{
"name": {
"type": "string"
},
"avatar": {
"type": "string"
}
}
⚠️ zod validator is a work in progress
const validator = z.object({
"name": z.string(),
"avatar": z.string()
})
GET https://crudify.app/api/user/iTduz8WS9Cug4-cH/users
- Gets all data for entity
Request Body
null
Response Body
type Response = (typeof validator._input & { id: string })[]
POST https://crudify.app/api/user/iTduz8WS9Cug4-cH/users
- Creates a data entry for entity
Request Body
type Request = typeof validator._input
Response Body
type Response = (typeof validator._input & { id: string })
GET https://crudify.app/api/user/iTduz8WS9Cug4-cH/users/:entityID
- Gets a data entry for entity by id
Request Body
null
Response Body
type Response = (typeof validator._input & { id: string })
POST https://crudify.app/api/user/iTduz8WS9Cug4-cH/users/where
- Finds one entity matching the query
Request Body
type Request = { [dotpath: string]: any }
Response Body
type Response = (typeof validator._input & { id: string })
PUT https://crudify.app/api/user/iTduz8WS9Cug4-cH/users/:entityID
- Updates a data entry for entity by id
Request Body
type Request = typeof validator._input
Response Body
type Response = (typeof validator._input & { id: string })
DELETE https://crudify.app/api/user/iTduz8WS9Cug4-cH/users/:entityID
- Deletes a data entry for entity by id
Request Body
null
Response Body
type Response = (typeof validator._input & { id: string })
Entity