Verify Dependencies for an Entity ================================= .. code-block:: http /api/repositories/{repository}/entities/{entity}/dependencies/{dependencyKey}/verify/ .. csv-table:: :header: Parameter, Type, Purpose :widths: 20, 20, 60 :stub-columns: 1 repository, string, the name of the :doc:`repository` entity, int, The ID of the entity to view dependencyKey, string, The dependency key Get ~~~ .. http:get:: /api/repositories/(string:repository)/entities/(int:entityID)/dependencies/(string:dependencyKey)/verify/ :synopsis: Verify a single dependency of an entity Schedule a job to verify a single dependency of the corresponding :doc:`entity` .. code-block:: http GET /api/repositories/test/entities/1/dependencies/5-2/verify/ HTTP/1.1 Accept: application/json .. csv-table:: :header: Response Code, Reason :widths: 25, 75 200, No error 500, Server error The response will contain the URL of the :doc:`scheduled job `. .. code-block:: json "uri": "/api/repositories/test/scheduler/276" Post ~~~~ .. http:post:: /api/repositories/(string:repository)/entities/(int:entityID)/dependencies/ :synopsis: Verify multiple dependencies of an entity using post. Schedule a job to verify multiple dependencies of the corresponding :doc:`entity `. .. code-block:: http POST /api/repositories/test/entities/1/dependencies HTTP/1.1 Content-Type: application/json { "command": "verify", "data": { "jobName": "Rule Verification", "attributes": [ {"rhs": "1", "lhs": "2 3 4"}, {"rhs": "2", "lhs": "5 6 7"} ] } } .. csv-table:: :header: Response Code, Reason :widths: 25, 75 200, No error 400, Invalid data passed with request 500, Server error The request requires a :doc:`standard-request` packet. Available commands are: .. csv-table:: :header: Command, Description :widths: 30, 70 verify, Verify one or more dependencies. The request packet must contain the ``command`` and ``data`` elements. The following fields should be sent as part of ``data``: .. csv-table:: :header: Name, Mandatory, Default Value, Description :widths: 10, 10, 12, 75 jobName, No, Rule Verification, Name of the scheduled verify dependencies job attributes, Yes, NA, Array of Right Hand Side (RHS) and Left Hand Side (LHS) attribute pairs to verify. rhs, Yes, NA, Right Hand Side (RHS) attribute. lhs, Yes, NA, Left Hand Side (LHS) attributes. The response will contain the URL of the :doc:`scheduled job `. .. code-block:: json "uri": "/api/repositories/test/scheduler/276" Verify Dependencies for an Attribute ==================================== .. code-block:: http /api/repositories/{repository}/entities/{entity}/attributes/{attribute}/dependencies/{dependencyKey}/verify/ .. csv-table:: :header: Parameter, Type, Purpose :widths: 20, 20, 60 :stub-columns: 1 repository, string, the name of the :doc:`repository` entity, int, The ID of the entity to view attribute, int, The ID of the attribute to view dependencyKey, string, The dependency key Get ~~~ .. http:get:: /api/repositories/(string:repository)/entities/(int:entityID)/attributes/(int:attributeID)/dependencies/(string:dependencyKey)/verify/ :synopsis: Verify a single dependency of an entity Schedule a job to verify a single dependency of the corresponding :doc:`entity` .. code-block:: http GET /api/repositories/test/entities/1/attributes/1/dependencies/5-1_2_3_4/verify/ HTTP/1.1 Accept: application/json .. csv-table:: :header: Response Code, Reason :widths: 25, 75 200, No error 500, Server error The response will contain the URL of the :doc:`scheduled job `. .. code-block:: json "uri": "/api/repositories/test/scheduler/276" Post ~~~~ .. http:post:: /api/repositories/(string:repository)/entities/(int:entityID)/attributes/(int:attributeID)/dependencies/ :synopsis: Verify multiple dependencies of an entity using post. Schedule a job to verify multiple dependencies of the corresponding :doc:`entity `. .. code-block:: http POST /api/repositories/test/entities/1/attribute/1/dependencies HTTP/1.1 Content-Type: application/json { "command": "verify", "data": { "jobName": "Rule Verification", "attributes": [ {"rhs": "1", "lhs": "2 3 4"}, {"rhs": "2", "lhs": "5 6 7"} ] } } .. csv-table:: :header: Response Code, Reason :widths: 25, 75 200, No error 400, Invalid data passed with request 500, Server error The request requires a :doc:`standard-request` packet. Available commands are: .. csv-table:: :header: Command, Description :widths: 30, 70 verify, Verify one or more dependencies. The request packet must contain the ``command`` and ``data`` elements. The following fields should be sent as part of ``data``: .. csv-table:: :header: Name, Mandatory, Default Value, Description :widths: 10, 10, 12, 75 jobName, No, Rule Verification, Name of the scheduled verify dependencies job attributes, Yes, NA, Array of Right Hand Side (RHS) and Left Hand Side (LHS) attribute pairs to verify. rhs, Yes, NA, Right Hand Side (RHS) attribute. lhs, Yes, NA, Left Hand Side (LHS) attributes. The response will contain the URL of the :doc:`scheduled job `. .. code-block:: json "uri": "/api/repositories/test/scheduler/276"