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": "Step_by_step_instructions",
        "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": {
            "92": {
                "pageid": 92,
                "ns": 0,
                "title": "Simple script to install on Centos/Fedora/Redhat",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "<pre>\n#=== Building and Installing Exodus on Centos ===\n\n#simply cut and paste everything into a script\n# nano installexodus.sh\n# . installexodus.sh\n#it takes roughly 15 minutes to finish on Centos/Redhat 5 or 5 mins on Redhat/Centos6\n\n#tested on:\n\n uname -a\n cat /etc/issue\n\n#CentOS release 5.6 (Final)\n#Linux localhost.localdomain 2.6.18-238.9.1.el5 #1 SMP Tue Apr 12 18:10:56 EDT 2011 i686 i686 i386 GNU/Linux\n\n#CentOS release 5.6 (Final)\n#Linux localhost.localdomain 2.6.18-238.9.1.el5 #1 SMP Tue Apr 12 18:10:13 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux\n\n#Fedora release 15 (Lovelock)\n#Linux localhost.localdomain 2.6.38.6-26.rcl.fc15.x86_64 #1 SMP Mon May 9 x86_64 x86_64 x86_64 GNU/Linux\n\n#==== 1. Installing or Building Boost ====\n\nsudo yum -y install icu libicu libicu-devel\n\n#rather dumb version centos/redhat 5 detection\nif [ \"`cat /etc/issue|grep \" 5\"`\" == \"\" ]; then\n\n sudo yum -y install boost-devel boost-date-time boost-filesystem boost-regex boost-system boost-thread\n\nelse\n\n #IT IS CRITICAL THAT BOOST-DEVEL IS *NOT* INSTALLED if building boost as follows.\n sudo yum -y remove boost-devel\n\n sudo yum -y install gcc-c++\n\n cd ~\n rm -f boost_1_46_1.tar.gz\n wget http://sourceforge.net/projects/boost/files/boost/1.46.1/boost_1_46_1.tar.gz/download\n tar xfz boost_1_46_1.tar.gz\n cd boost_1_46_1\n\n #bjam should say \"has_icu builds: yes\" otherwise check your icu installation above\n ./bootstrap.sh\n sudo ./bjam --with-date_time --with-filesystem --with-regex --with-system --with-thread install\n\nfi\n\n#==== 2. Building and Installing Exodus ====\n\n sudo yum -y install subversion gcc-c++ postgresql-devel\n\n cd ~\n svn co HTTPS://exodusdb.googlecode.com/svn/trunk/ exodus\n cd ~/exodus\n ./configure\n make && sudo make install\n\n\n#==== 3. Configuring Postgresql ====\n\n sudo yum -y install postgresql-server\n sudo service postgresql initdb\n sudo service postgresql start\n sudo chkconfig postgresql on\n\n sudo su - postgres\n\n ##allow local tcp/ip login\n #change \"ident sameuser\" to \"md5\" for all/all/127.0.0.1/32\n #host    all         all         127.0.0.1/32          ident sameuser\n #host    all         all         127.0.0.1/32          md5\n cp ~/data/pg_hba.conf ~/data/pg_hba.conf.preexodus\n egrep -v \"^\\w*host.*all.*127.0.0.1/.*ident\" ~/data/pg_hba.conf.preexodus > ~/data/pg_hba.conf\n echo host all all 127.0.0.1/32 md5 >> ~/data/pg_hba.conf\n\n psql -U postgres -d template1\n \\connect template1\n CREATE OR REPLACE FUNCTION exodus_call(bytea, bytea, bytea, bytea, bytea, int4, int4) RETURNS bytea AS 'pgexodus', 'exodus_call' LANGUAGE C IMMUTABLE;\n CREATE OR REPLACE FUNCTION exodus_extract_bytea(bytea, int4, int4, int4) RETURNS bytea AS 'pgexodus', 'exodus_extract_bytea' LANGUAGE C IMMUTABLE;\n CREATE OR REPLACE FUNCTION exodus_extract_text(bytea, int4, int4, int4) RETURNS text AS 'pgexodus', 'exodus_extract_text' LANGUAGE C IMMUTABLE;\n CREATE OR REPLACE FUNCTION exodus_extract_sort(bytea, int4, int4, int4) RETURNS text AS 'pgexodus', 'exodus_extract_sort' LANGUAGE C IMMUTABLE;\n -- Remaining functions are STRICT therefore never get called with NULLS -- also return NULL if passed zero length strings\n CREATE OR REPLACE FUNCTION exodus_extract_text2(bytea, int4, int4, int4) RETURNS text AS 'pgexodus', 'exodus_extract_text2' LANGUAGE C IMMUTABLE STRICT;\n CREATE OR REPLACE FUNCTION exodus_extract_date(bytea, int4, int4, int4) RETURNS date AS 'pgexodus', 'exodus_extract_date' LANGUAGE C IMMUTABLE STRICT;\n CREATE OR REPLACE FUNCTION exodus_extract_time(bytea, int4, int4, int4) RETURNS time AS 'pgexodus', 'exodus_extract_time' LANGUAGE C IMMUTABLE STRICT;\n CREATE OR REPLACE FUNCTION exodus_extract_datetime(bytea, int4, int4, int4) RETURNS timestamp AS 'pgexodus', 'exodus_extract_datetime' LANGUAGE C IMMUTABLE STRICT; \n CREATE ROLE exodus LOGIN\n  PASSWORD 'somesillysecret'\n  CREATEDB CREATEROLE;\n CREATE DATABASE exodus\n  WITH ENCODING='UTF8'\n    OWNER=exodus;\n \\df exodus*\n \\q\n exit\n\n sudo service postgresql reload\n\n#==== 4. Configuring Exodus ====\n\n echo host=127.0.0.1 \\\n port=5432 \\\n dbname=exodus \\\n user=exodus \\\n password=somesillysecret \\\n > ~/.exodus\n\n#==== 5. Testing Exodus ====\n\n cd ~\n testsort\n\n==== 6. Programming with Exodus ====\n\n #you must make some change to hello or actually save it, not just quit\n #edic hello\n #hello\n #compile hello\n\n</pre>"
                    }
                ]
            },
            "93": {
                "pageid": 93,
                "ns": 0,
                "title": "Simple script to install on Ubuntu 10.04 LTS",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "<pre>\n#!/bin/bash\n#=== Building and Installing Exodus on Ubuntu 10.04.2 LTS x64 ===\n\n#cut and paste everything into a bash script and run it as follows:\n#nano installexodus.sh\n#. installexodus.sh\n\n#tested on:\n\n#Ubuntu 10.04.2 LTS\n#Linux lucid64 2.6.32-31-server #61-Ubuntu SMP Fri Apr 8 19:44:42 UTC 2011 x86_64 GNU/Linux\n\nuname -a\ncat /etc/issue\n\n\n#==== 1. Building and Installing Exodus ====\n\n###yum -y install subversion gcc-c++ postgresql-devel\nsudo apt-get -y install subversion g++ postgresql-server-dev* libboost-all-dev\n\ncd ~\nsvn co HTTPS://exodusdb.googlecode.com/svn/trunk/ exodus\ncd ~/exodus\n./configure\nmake clean #in case half-built with wrong boost libs\nmake\nsudo make install\n\n\n#==== 2. Installing Postgres and Configuring it for Exodus ====\n\nexport POSTGRESVER=8.4\n\n###yum -y install postgresql-server\nsudo apt-get -y install postgresql-$POSTGRESVER\n\n###/etc/init.d/postgresql start\n#/etc/init.d/postgresql-$POSTGRESVER start\n\ncat > /tmp/exoduspg.input << EOF\n#!/bin/bash\n\npsql -U postgres -d template1 << EOF2\n\\connect template1\nCREATE OR REPLACE FUNCTION exodus_call(bytea, bytea, bytea, bytea, bytea, int4, int4) RETURNS bytea AS 'pgexodus', 'exodus_call' LANGUAGE C IMMUTABLE;\nCREATE OR REPLACE FUNCTION exodus_extract_bytea(bytea, int4, int4, int4) RETURNS bytea AS 'pgexodus', 'exodus_extract_bytea' LANGUAGE C IMMUTABLE;\nCREATE OR REPLACE FUNCTION exodus_extract_text(bytea, int4, int4, int4) RETURNS text AS 'pgexodus', 'exodus_extract_text' LANGUAGE C IMMUTABLE;\nCREATE OR REPLACE FUNCTION exodus_extract_sort(bytea, int4, int4, int4) RETURNS text AS 'pgexodus', 'exodus_extract_sort' LANGUAGE C IMMUTABLE;\n-- Remaining functions are STRICT therefore never get called with NULLS -- also return NULL if passed zero length strings\nCREATE OR REPLACE FUNCTION exodus_extract_text2(bytea, int4, int4, int4) RETURNS text AS 'pgexodus', 'exodus_extract_text2' LANGUAGE C IMMUTABLE STRICT;\nCREATE OR REPLACE FUNCTION exodus_extract_date(bytea, int4, int4, int4) RETURNS date AS 'pgexodus', 'exodus_extract_date' LANGUAGE C IMMUTABLE STRICT;\nCREATE OR REPLACE FUNCTION exodus_extract_time(bytea, int4, int4, int4) RETURNS time AS 'pgexodus', 'exodus_extract_time' LANGUAGE C IMMUTABLE STRICT;\nCREATE OR REPLACE FUNCTION exodus_extract_datetime(bytea, int4, int4, int4) RETURNS timestamp AS 'pgexodus', 'exodus_extract_datetime' LANGUAGE C IMMUTABLE STRICT; \nCREATE ROLE exodus LOGIN\n PASSWORD 'somesillysecret'\n CREATEDB CREATEROLE;\nCREATE DATABASE exodus\n WITH ENCODING='UTF8'\n   OWNER=exodus;\n\\df exodus*\n\\q\nEOF2\n\nEOF\n\nchmod a+xr /tmp/exoduspg.input\nsudo su postgres -c \"/tmp/exoduspg.input\"\nrm -f /tmp/exoduspg.input\n\n#/etc/init.d/postgresql reload\nsudo /etc/init.d/postgresql-$POSTGRESVER reload\n\n\n#==== 3. Configuring Exodus for Postgres ====\n\necho host=127.0.0.1 \\\nport=5432 \\\ndbname=exodus \\\nuser=exodus \\\npassword=somesillysecret \\\n> ~/.exodus\n\n\n#==== 4. Testing Exodus ====\n\ncd ~\ntestsort\n\n\n#==== 5. Programming with Exodus ====\n\n#you must make some change to hello or actually save it, not just quit\n#edic hello\n#hello\n#compile hello\n</pre>"
                    }
                ]
            }
        }
    }
}