Duplicate Rows ============== .. code-block:: http /api/repositories/{repository}/entities/{entity}/duplicatesindicator/{duplicateId}/duplicates .. 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 duplicateId, int, The value of the duplicate indicator row .. http:get:: /api/repositories/(string:repository)/entities/(int:entityID)/duplicatesindicator/{duplicateId}/duplicates :synopsis: Lists the sets of duplicate rows with a given value in the entity Lists the sets of duplicate rows with a given value in the :doc:`entity` .. code-block:: http GET /api/repositories/jupiter/entities/1/duplicatesindicator/{duplicateId}/duplicates HTTP/1.1 Accept: application/json .. csv-table:: :header: Response Code, Reason :widths: 25, 75 200, No error 500, Server error The response will be a :doc:`standard-response`, with a list of rows in the :doc:`entity`. The ``columns`` array will contain the list of columns for each data row. If there are no duplicate rows with a given value in the :doc:`entity`, ``rows`` will be an empty string. Commands ~~~~~~~~ .. http:post:: /api/repositories/(string:repository)/entities/{entity}/duplicatesindicator/{duplicateId}/duplicates :synopsis: Execute commands against entities metadata duplicate rows Executes commands for the duplicate rows in the repositories. The request requires a :doc:`standard-request` packet. Available commands are: .. csv-table:: :header: Command, Description :widths: 30, 70 get, Get a filtered list of duplicate rows from an entity from the repository The response is a :doc:`standard-response`; the datarows array will have an element for each row that matches the criteria. Get --- .. code-block:: http POST /api/repositories/jupiter/entities/1/duplicatesindicator/{duplicateId}/duplicates HTTP/1.1 Content-Type: application/json { "command": "get" } .. csv-table:: :header: Response Code, Reason :widths: 25, 75 200, Success 500, Server error The request packet must contain the ``command`` and ``options`` elements. The ``data`` element is not required. All fields are required.