Get entity by entity number¶
Summary¶
Source repository:
jef-systems/jef-one-backendSource SHA:
ac65ed21b4ea52235f472efeef826c144a2fe812Source run id:
30028079423Module:
OneLambda function:
jef-one-get-entity-by-entity-numberHTTP method:
GETInvocation mode:
syncPackage mode:
no-packageAPI category:
One Complex Sync No Package GET APIsAPI path:
/one/complex-sync-no-packages/jef-one-get-entity-by-entity-numberEndpoint URL:
https://api.jefoffice.com/one/complex-sync-no-packages/jef-one-get-entity-by-entity-numberDocumentation scope:
lambda-complex-sync-no-packages
Synchronous Lambda Complex Rule¶
This API is documented as a synchronous Lambda complex no-package API. API Gateway waits for the Lambda result and returns the final Lambda response.
Description¶
Retrieves and validates one entity using the current domain-based entity schema.
Payload Example¶
{
"entity_number": "1001"
}
Payload Schema¶
{
"root": {
"type": "M",
"required": true,
"attributes": {
"entity_number": {
"type": "S",
"required": true,
"pattern": "^[0-9]{4}$",
"min_length": 4,
"max_length": 4
}
}
}
}
Response Schema¶
{
"root": {
"type": "M",
"required": true,
"attributes": {
"is_accepted": {
"type": "BOOL",
"required": true
},
"is_found": {
"type": "BOOL",
"required": true
},
"can_continue": {
"type": "BOOL",
"required": true
},
"entity_active": {
"type": "BOOL",
"required": true
},
"message_type": {
"type": "S",
"required": true
},
"message": {
"type": "S",
"required": true
},
"next_action": {
"type": "S",
"required": true
},
"operation": {
"type": "S",
"required": true
},
"status_code": {
"type": "N",
"required": true,
"integer": true,
"minimum": 100,
"maximum": 599
},
"entity_id": {
"type": "S",
"required": false,
"format": "uuid",
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
},
"domain_id": {
"type": "S",
"required": false,
"format": "uuid",
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
},
"entity_number": {
"type": "S",
"required": false,
"pattern": "^[0-9]{4}$",
"min_length": 4,
"max_length": 4
},
"entity_name": {
"type": "S",
"required": false
},
"created": {
"type": "S",
"required": false,
"format": "date-time"
},
"updated": {
"type": "S",
"required": false,
"format": "date-time"
},
"failure_code": {
"type": "S",
"required": false
},
"failure_reason": {
"type": "S",
"required": false
},
"is_active": {
"type": "BOOL",
"required": false
}
}
}
}
CMD curl¶
curl.exe -X GET "https://api.jefoffice.com/one/complex-sync-no-packages/jef-one-get-entity-by-entity-number"
PowerShell curl¶
curl.exe -X GET "https://api.jefoffice.com/one/complex-sync-no-packages/jef-one-get-entity-by-entity-number"