Odpověď z MediaWiki API

Toto je HTML reprezentace formátu JSON. HTML se hodí pro ladění, ale pro aplikační použití je nevhodné.

Pro změnu výstupního formátu uveďte parametr format. Abyste viděli ne-HTML reprezentaci formátu JSON, nastavte format=json.

Více informací najdete v úplné dokumentaci nebo v nápovědě k API.

{
    "batchcomplete": "",
    "query": {
        "authmanagerinfo": {
            "canauthenticatenow": "",
            "cancreateaccounts": "",
            "preservedusername": "",
            "requests": [
                {
                    "id": "MediaWiki\\Auth\\PasswordAuthenticationRequest",
                    "metadata": {},
                    "required": "primary-required",
                    "provider": "Password-based authentication",
                    "account": ""
                },
                {
                    "id": "MediaWiki\\Auth\\RememberMeAuthenticationRequest",
                    "metadata": {},
                    "required": "optional",
                    "provider": "MediaWiki\\Auth\\RememberMeAuthenticationRequest",
                    "account": "MediaWiki\\Auth\\RememberMeAuthenticationRequest"
                }
            ],
            "fields": {
                "username": {
                    "type": "string",
                    "label": "U\u017eivatelsk\u00e9 jm\u00e9no",
                    "help": "Username for authentication."
                },
                "password": {
                    "type": "password",
                    "label": "Heslo",
                    "help": "Password for authentication."
                },
                "rememberMe": {
                    "type": "checkbox",
                    "label": "P\u0159ihl\u00e1sit trvale",
                    "help": "Whether the password should be remembered for longer than the length of the session.",
                    "optional": ""
                }
            }
        }
    }
}