Este tema contém os padrões MDM para atividades logísticas
Atividades logísticas (logisticActivity)
-
Descrição
Esta entidade padroniza os seguintes atributos de atividades logísticas:
Id e nome -
Estrutura dos Campos
Campo Descrição Tipo Link dataId Identificador da atividade logística int name nome da atividade logística string dataIdentifier identificador de unicidade da entidade string -
Como consultar ultima versão do schema da entidade
- Exemplo de retorno
Clique em "JSON"
{ "statusCode": 200, "success": true, "message": "Success", "document": { "_id": "6408e4872fdf838348471edc", "entityType": "logisticActivity", "revision": 3, "dataIdentifierSetup": [ "name" ], "jsonSchema": { "title": "", "required": [ "entityType", "revision", "data" ], "properties": { "entityType": { "title": "logisticActivity", "pattern": "^(.*)$", "$id": "#/properties/entityType", "type": "string" }, "revision": { "title": "The review of this entity.", "default": 1, "$id": "#/properties/revision", "type": "integer" }, "data": { "title": "The composition of the document object.", "$id": "#/properties/data", "type": "object", "required": [ "name" ], "properties": { "name": { "title": "Logistic activity name.", "$id": "#/properties/data/properties/name", "type": "string", "minLength": 3, "maxLength": 200 }, "dataId": { "title": "The Unique Key for a document of this entity. If you don't know, don't put this in the document and it will be generated automatically.", "$id": "#/properties/data/properties/dataId", "type": "integer" } } } }, "$id": "http://example.org/root.json#", "type": "object", "definitions": {}, "$schema": "http://json-schema.org/draft-07/schema#" }, "authDefinition": { "resources": { "logisticActivity": { "create": true, "update": true, "delete": true, "view": true } } }, "sensiblePropertiesPath": [], "effectiveDate": "2023-01-25T14:29:04.828Z", "status": true, "deleted": false } }
- Exemplo de retorno
-
Exemplo de chamada ao endpoint (GET) pela API get records by queryTemplate
-
Exemplo de chamada ao endpoint (GET) usando “data id”
-
Exemplo de chamada ao endpoint (GET) usando “updatedAt”
-
Exemplo de retorno
Clique em "JSON"
{ "statusCode": 200, "success": true, "message": "Success", "document": { "_id": "636ff66ecff33738b4078d4e", "entityType": "logisticActivity", "revision": 1, "data": { "name": "Corretora de seguros", "dataId": 4, "dataIdentifier": { "name": "Corretora de seguros" } }, "createdAt": "2022-11-12T19:39:26.121Z", "deleted": false, "userCreator": "service-account-mdm", "updatedAt": "2022-11-12T19:39:26.121Z" } }