Problem in Vocabulary API


#1

I think the Vocabulary api is either wrongly documented or buggy. When requesting it with no option the response has an additional ‘general’ parameter containing the return list. Maybe this is intended but it is not in the documentation. When requesting with level options it is fine.

Example:
When requesting https://www.wanikani.com/api/user/<you key>/vocabulary/ the returned structure is :
<br></span><pre>{ "user_information":{ "username":"Kiramind", "gravatar":"221000a8fef06871a5673536a034c3f5", "level":7, "title":"Turtles", "about":"", "website":"", "twitter":"", "topics_count":0, "posts_count":0, "creation_date":1477980959, "vacation_date":null }, "requested_information":{ <b><u>"general"</u></b>:[ { "character":"二", "kana":"に", "meaning":"two", "level":1, "user_specific":{ "srs":"master", "srs_numeric":7, "unlocked_date":1478402525, "available_date":1483437600, "burned":false, "burned_date":0, "meaning_correct":6, "meaning_incorrect":0, "meaning_max_streak":6, "meaning_current_streak":6, "reading_correct":6, "reading_incorrect":0, "reading_max_streak":6, "reading_current_streak":6, "meaning_note":null, "user_synonyms":null, "reading_note":null } }, ...</pre>

Hope it helps.