MediaWiki API result

This is the HTML representation of the JSON format. HTML is good for debugging, but is unsuitable for application use.

Specify the format parameter to change the output format. To see the non-HTML representation of the JSON format, set format=json.

See the complete documentation, or the API help for more information.

{
    "batchcomplete": "",
    "continue": {
        "gapcontinue": "Reverse_Proxy_with_Squid",
        "continue": "gapcontinue||"
    },
    "warnings": {
        "main": {
            "*": "Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes."
        },
        "revisions": {
            "*": "Because \"rvslots\" was not specified, a legacy format has been used for the output. This format is deprecated, and in the future the new format will always be used."
        }
    },
    "query": {
        "pages": {
            "1396": {
                "pageid": 1396,
                "ns": 0,
                "title": "Removing Comments and Blank lines of a config file",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "Using 'grep' and 'sed' we can strip out comments and blank lines of any file. you can then redirect the output to a file if you so wish. In this example I will use it to remove the comments and blank lines from my apache2.conf file\n\n<syntaxhighlight lang=\"bash\">\ngrep -v \"#\" /etc/apache2/apache2.conf | sed -e '/^$/d'\n</syntaxhighlight>\n \nIf you wish to leave the blank lines then simply omit the sed statement.\n\nAlternatively you can use egrep\n\n<syntaxhighlight lang=\"bash\">\negrep -v '(#|^\\s*$)'\n</syntaxhighlight>\n\nWith both options you can of course redirect output to a new file. The default is stdout\n\n[[Category:Linux| ]] [[Category:Unix| ]]"
                    }
                ]
            },
            "1770": {
                "pageid": 1770,
                "ns": 0,
                "title": "Reserve Defence Force",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "== Introduction ==\n\n{{Irish Army}}\n\nOn the 21st of November 1991 I was sworn in as a Recruit in the FCA (An F\u00f3rsa Cosanta \u00c1iti\u00fail) which is the reserve of the regular standing army, the PDF (Permanent Defence Force).\n\nOur local battalion was the 23rd Infantry Battalion and encompasses three rifle companies. The original command was the Southern Command which is now known as the Southern Brigade\n\n*A Company - [[Collins Barracks Cork| Collins Barracks]], Cork City.\n*B Company - Douglas Street, Cork City.\n*C Company - [[Youghal]], Co. Cork and Midleton, Co. Cork.\n\nOn the 1st of October 2005 the FCA was officially stood down and and a new RDF established. This new Reserve Defence Force consists of the Army Reserve and Naval Reserve and consists of some 17,000 members.\n\nFrom this time the 23rd Infantry Battalion ceased to exist and was now to become the 34th Infantry Battalion.\n\nMy current rank is that of 3 star Private.\n\n<gallery>\nImage:23rdBN.jpg\nImage:34thBN.jpg\n</gallery>\n\n[[Category:Personal| ]]"
                    }
                ]
            }
        }
    }
}