sb-github / extractor

2 stars 0 forks source link

Create API to run a crawler #5

Closed sb-github closed 6 years ago

sb-github commented 6 years ago

URL: {url}/crawler/run Type: GET Check crawler_config file for number of running crawlers. Max number = 4.


In Success: response: status 200 ok

In Fail: response: status "failed", error_description: "text"

StasOmelchenko commented 6 years ago

Request

URL: http://192.168.128.245:8081/extractor/rest/v1/crawler/run?searchcondition=requested_searchcondition where requested_searchcondition - is Required, its a string, example of values: php, agile, java, mongodb, etc Type: GET

Response

In Success: response: status 200 OK In Fail: response: status 500 INTERNAL_SERVER_ERROR, error_description: "text"