-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create a REST API for the language app #22
Comments
Possible routes: ;; for the following, support query parameters for providing your own language frequencies data
;; structure ... for all, support word, sentence, and paragraph parameters
/api/language/gen/assembled
/api/language/gen/assembled/:world ; if lang is not provided, return results for all
/api/language/gen/assembled/:world/:lang
;; for the following, support query parameters word, sentence, and paragraph
;; if language is not provided, return results for all
/api/language/gen ; return both markov and syntagmata
/api/language/gen/markov
/api/language/gen/syntagmata
/api/language/gen/:lang
/api/language/gen/:lang/markov
/api/language/gen/:lang/syntagmata
;; if race/name are not provided, return results for all
/api/language/gen/name
/api/language/gen/name/markov
/api/language/gen/name/syntagmata
;; if name-type is not provided, return results for all
/api/language/gen/name/:race
/api/language/gen/name/:race/markov
/api/language/gen/name/:race/syntagmata
/api/language/gen/name/:race/:name-type
/api/language/gen/name/:race/:name-type/markov
/api/language/gen/name/:race/:name-type/syntagmata
;; stats downloads as JSON data
/api/language/stats/:lang/markov
/api/language/stats/:lang/syntagmata
/api/language/stats/:race/:name-type/markov
/api/language/stats/:race/:name-type/syntagmata
;; for the following, use HTTP verbs for updates, additions, deletes, etc.
/api/language/dictionary/:lang
;; dedicated search resource
/api/language/dictionary/:lang/search In all cases, if word, sentence, or paragraph parameters are not provided, then word will be assumed. All resources should provide a Note that the inclusion of |
Depends on #23
The text was updated successfully, but these errors were encountered: