Skip to content

Commit

Permalink
Correct API request url
Browse files Browse the repository at this point in the history
  • Loading branch information
afrozas authored and niranjan94 committed Jul 5, 2017
1 parent d01c179 commit 7b387c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@

The API(s) provided by query-server are as follows:

` GET /api/v1/search/<search-engine>/query=query&format=format `
` GET /api/v1/search/<search-engine>?query=query&format=format `

> *search-engine* : ['google' , 'bing', 'duckduckgo' , 'yahoo']
> *query* : query can be any string
> *format* : [ `json`, `xml` ]
A sample query : `/api/v1/search/bing/query=fossasia&format=xml`
A sample query : `/api/v1/search/bing?query=fossasia&format=xml`

## Error Codes
404 Not Found : Incorrect Search Engine, Zero Response
Expand All @@ -50,7 +50,7 @@ Make sure you have [Nodejs](https://nodejs.org/en/) installed.
Running this tool requires installing the nodejs as well as python dependencies.

```
git clone https://github.com/<user-name>/query-server.git
git clone https://github.com/fossasia/query-server.git
cd query-server
npm install -g bower
bower install
Expand Down

0 comments on commit 7b387c8

Please sign in to comment.