Skip to content

Commit

Permalink
Fix sample API request URIs.
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Oct 1, 2020
1 parent c852ea5 commit 1c0dba7
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 @@ -53,16 +53,16 @@ dictmaker has no concept of language or semantics. To make a universal dictionar
```shell
# /dictionary/from_lang/to_lang/word
# Optional query params: ?type=noun&type=noun2&tag=a&tag=b ...
curl localhost:8080/dictionary/english/english/apple
curl localhost:8080/api/dictionary/english/english/apple
```

## Sample dictionary
The `sample/sample.sql` shows how to setup an English-English and English-Italian dictionary. Retaining the English-Italian config in the generated sample config file, execute `sample/sample.sql` on your database.

Then try:
```shell
curl localhost:8080/dictionary/english/english/apple
curl localhost:8080/dictionary/english/italian/apple
curl localhost:8080/api/dictionary/english/english/apple
curl localhost:8080/api/dictionary/english/italian/apple
```

## Themes
Expand Down

0 comments on commit 1c0dba7

Please sign in to comment.