diff options
author | Jochen Topf <jochen@topf.org> | 2013-01-06 18:11:56 +0100 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2013-01-06 18:11:56 +0100 |
commit | 9474196b76b491668c3120455b0a02896d2c5e3c (patch) | |
tree | 969c3101ac0a09f252928ef1d421f6308701b1f5 /web/lib | |
parent | 0393d1b98ff38fa1015ae7b82eff9fbae783b8ef (diff) | |
download | taginfo-9474196b76b491668c3120455b0a02896d2c5e3c.tar taginfo-9474196b76b491668c3120455b0a02896d2c5e3c.tar.gz |
Updated (and disabled) unfinished langtag api
Diffstat (limited to 'web/lib')
-rw-r--r-- | web/lib/api/langtag.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/lib/api/langtag.rb b/web/lib/api/langtag.rb index 1c2eca1..3f4f505 100644 --- a/web/lib/api/langtag.rb +++ b/web/lib/api/langtag.rb @@ -1,7 +1,7 @@ # web/lib/api/langtag.rb class Taginfo < Sinatra::Base - api(2, 'langtag/name', { + api(4, 'keys/name', { :description => 'Get list of keys from the database that contain the string "name".', :parameters => { :query => 'Only show keys matching this query (substring match, optional).' }, :paging => :optional, @@ -75,7 +75,7 @@ class Taginfo < Sinatra::Base @@bcp47_filters[type.to_sym] = { :expr => type, :doc => "Show entries of type '#{type}' only." }; end - api(2, 'langtag/bcp47', { + api(4, 'langtags', { :description => 'Get official subtags from the IETF BCP47 registry.', :parameters => { :query => 'Only show entries matching this query (case insensitive substring match on subtags and description; optional).' }, :paging => :optional, |