apertium / apertium/apertium-apy

`/list` endpoint is not listing morph modes

Open
#206 9 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
39
Forks
46
PR merge metrics
No merged PRs in 30d

Description

I have a docker image with a single apertium language module.

When `/list` is queries explicitly for analysers and generators, it reports their availability:
```
$ curl 'http://localhost:2738/list?q=analyzers'
{"xyz": "xyz-morph"}
$ curl 'http://localhost:2738/list?q=generators'
{"xyz": "xyz-gener"}
```

Use of the modes also works. However, when I query `/list` without specifying type, it does not report the analysers and generators:

```
$ curl 'http://localhost:2738/list'
{"responseData": [], "responseDetails": null, "responseStatus": 200}
```

According to [the documentation](https://wiki.apertium.org/wiki/Apertium-apy#Usage), `/list` should be returning all mode names, not just language pairs.

I can't figure out if this unexpected (for me) behaviour is a bug, incorrect/out-of-date documentation, or a mis-configuration on my part.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.