jpa-search
v1.0.3
Published
jpa-search is a NPM Angular module. This module was written to find parameters and their related operands of given service path, "get" request, from swagger service descriptions json file (/v2/api-docs) and return the criteria object based on user searche
Downloads
5
Readme
jpa-search
jpa-search is a NPM Angular module. This module was written to find parameters and their related operands of given service path, "get" request, from swagger service descriptions json file (/v2/api-docs) and return the criteria object based on user searched rows.
Installation
npm install jpa-search
Usage
import JpaSearchModule
<lib-jpa-search [apiPath]="http://{host_path}/{base_path}/{path_to_service}" (finalCriteria)="useFinalCriteria($event)"></lib-jpa-search>
for example: apiPath = http://pay.sample.name/paye/api/transaction
The component will create the result criteria for you base on your search rows and values. For example the result would be: {"buyerIpAddress.equals" => "2"}
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.