Skip to content

Commit

Permalink
update Bruno repo with ALL WordPress API calls documented in CODEX
Browse files Browse the repository at this point in the history
  • Loading branch information
asirota committed Oct 15, 2024
1 parent a07dac6 commit 6532e9f
Show file tree
Hide file tree
Showing 26 changed files with 603 additions and 2 deletions.
23 changes: 23 additions & 0 deletions bruno/Block Patterns/Browse All Patterns.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
meta {
name: Browse All Patterns
type: http
seq: 1
}

get {
url: https://{{API_URL}}/patterns/:api_version/?pattern-categories=2&wp-version=5.8&locale=en_US
body: none
auth: none
}

params:query {
pattern-categories: 2
wp-version: 5.8
locale: en_US
~search: button
~pattern-keywords: 11
}

params:path {
api_version: 1.0
}
28 changes: 28 additions & 0 deletions bruno/Core/Core Checksums.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
meta {
name: Core Checksums
type: http
seq: 1
}

get {
url: https://{{API_URL}}/core/checksums/:api_version/?version=6.0&locale=en_US
body: none
auth: none
}

params:query {
version: 6.0
locale: en_US
}

params:path {
api_version: 1.0
}

headers {
Host: api.wordpress.org
User-Agent: WordPress/6.2.2; http://172.18.0.5
Accept: */*
Accept-Encoding: deflate, gzip
Connection: Keep-Alive
}
23 changes: 23 additions & 0 deletions bruno/Core/Core Stability Check.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
meta {
name: Core Stability Check
type: http
seq: 3
}

get {
url: https://{{API_URL}}/core/stable-check//:api_version
body: none
auth: none
}

params:path {
api_version: 1.0
}

headers {
Host: api.wordpress.org
User-Agent: WordPress/6.2.2; http://172.18.0.5
Accept: */*
Accept-Encoding: deflate, gzip
Connection: Keep-Alive
}
70 changes: 70 additions & 0 deletions bruno/Core/Core Version Check.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
meta {
name: Core Version Check
type: http
seq: 1
}

get {
url: https://{{API_URL}}/core/version-check/:api_version/?version=6.2.2&php=7.4.19&locale=en_US&mysql=5.7.34&local_package=&blogs=1&users=1&multisite_enabled=0&initial_db_version=47018&extensions%5Bapache2handler%5D=7.4.19&extensions%5Bbcmath%5D=7.4.19&extensions%5BCore%5D=7.4.19&extensions%5Bctype%5D=7.4.19&extensions%5Bcurl%5D=7.4.19&extensions%5Bdate%5D=7.4.19&extensions%5Bdom%5D=20031129&extensions%5Bexif%5D=7.4.19&extensions%5Bfileinfo%5D=7.4.19&extensions%5Bfilter%5D=7.4.19&extensions%5Bftp%5D=7.4.19&extensions%5Bgd%5D=7.4.19&extensions%5Bhash%5D=7.4.19&extensions%5Biconv%5D=7.4.19&extensions%5Bimagick%5D=3.4.4&extensions%5Bjson%5D=7.4.19&extensions%5Blibxml%5D=7.4.19&extensions%5Bmbstring%5D=7.4.19&extensions%5Bmysqli%5D=7.4.19&extensions%5Bmysqlnd%5D=mysqlnd+7.4.19&extensions%5Bopenssl%5D=7.4.19&extensions%5Bpcre%5D=7.4.19&extensions%5BPDO%5D=7.4.19&extensions%5Bpdo_sqlite%5D=7.4.19&extensions%5BPhar%5D=7.4.19&extensions%5Bposix%5D=7.4.19&extensions%5BReflection%5D=7.4.19&extensions%5Bsession%5D=7.4.19&extensions%5BSimpleXML%5D=7.4.19&extensions%5Bsodium%5D=7.4.19&extensions%5BSPL%5D=7.4.19&extensions%5Bsqlite3%5D=7.4.19&extensions%5Bstandard%5D=7.4.19&extensions%5Btokenizer%5D=7.4.19&extensions%5Bxml%5D=7.4.19&extensions%5Bxmlreader%5D=7.4.19&extensions%5Bxmlwriter%5D=7.4.19&extensions%5BZend+OPcache%5D=7.4.19&extensions%5Bzip%5D=1.15.6&extensions%5Bzlib%5D=7.4.19&platform_flags%5Bos%5D=Linux&platform_flags%5Bbits%5D=64&image_support%5Bimagick%5D%5B0%5D=webp
body: none
auth: none
}

params:query {
version: 6.2.2
php: 7.4.19
locale: en_US
mysql: 5.7.34
local_package:
blogs: 1
users: 1
multisite_enabled: 0
initial_db_version: 47018
extensions[apache2handler]: 7.4.19
extensions[bcmath]: 7.4.19
extensions[Core]: 7.4.19
extensions[ctype]: 7.4.19
extensions[curl]: 7.4.19
extensions[date]: 7.4.19
extensions[dom]: 20031129
extensions[exif]: 7.4.19
extensions[fileinfo]: 7.4.19
extensions[filter]: 7.4.19
extensions[ftp]: 7.4.19
extensions[gd]: 7.4.19
extensions[hash]: 7.4.19
extensions[iconv]: 7.4.19
extensions[imagick]: 3.4.4
extensions[json]: 7.4.19
extensions[libxml]: 7.4.19
extensions[mbstring]: 7.4.19
extensions[mysqli]: 7.4.19
extensions[mysqlnd]: mysqlnd 7.4.19
extensions[openssl]: 7.4.19
extensions[pcre]: 7.4.19
extensions[PDO]: 7.4.19
extensions[pdo_sqlite]: 7.4.19
extensions[Phar]: 7.4.19
extensions[posix]: 7.4.19
extensions[Reflection]: 7.4.19
extensions[session]: 7.4.19
extensions[SimpleXML]: 7.4.19
extensions[sodium]: 7.4.19
extensions[SPL]: 7.4.19
extensions[sqlite3]: 7.4.19
extensions[standard]: 7.4.19
extensions[tokenizer]: 7.4.19
extensions[xml]: 7.4.19
extensions[xmlreader]: 7.4.19
extensions[xmlwriter]: 7.4.19
extensions[Zend OPcache]: 7.4.19
extensions[zip]: 1.15.6
extensions[zlib]: 7.4.19
platform_flags[os]: Linux
platform_flags[bits]: 64
image_support[imagick][0]: webp
}

params:path {
api_version: 1.7
}
19 changes: 19 additions & 0 deletions bruno/Credits & Translations/Core Translations.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
meta {
name: Core Translations
type: http
seq: 2
}

get {
url: https://{{API_URL}}/translations/core/:api_version/?version=6.0
body: none
auth: none
}

params:query {
version: 6.0
}

params:path {
api_version: 1.0
}
20 changes: 20 additions & 0 deletions bruno/Credits & Translations/Credits.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
meta {
name: Credits
type: http
seq: 1
}

get {
url: {{API_URL}}/core/credits/:api_version/?version=6.0&locale=en-US
body: none
auth: none
}

params:query {
version: 6.0
locale: en-US
}

params:path {
api_version: 1.0
}
20 changes: 20 additions & 0 deletions bruno/Credits & Translations/Plugins Translations.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
meta {
name: Plugins Translations
type: http
seq: 3
}

get {
url: https://{{API_URL}}/translations/plugins/:api_version?slug=elementor&version=3.24.7
body: none
auth: none
}

params:query {
slug: elementor
version: 3.24.7
}

params:path {
api_version: 1.0
}
21 changes: 21 additions & 0 deletions bruno/Editor/Documentation.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
meta {
name: Documentation
type: http
seq: 1
}

get {
url: https://{{API_URL}}/core/handbook/:api_version/?function=wp_options_meta&version=6.0&redirect=false
body: none
auth: none
}

params:query {
function: wp_options_meta
version: 6.0
redirect: false
}

params:path {
api_version: 1.0
}
15 changes: 15 additions & 0 deletions bruno/Happy/Browse Happy.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
meta {
name: Browse Happy
type: http
seq: 1
}

get {
url: https://{{API_URL}}/core/browse-happy/:api_version/
body: none
auth: none
}

params:path {
api_version: 1.1
}
19 changes: 19 additions & 0 deletions bruno/Happy/Serve Happy.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
meta {
name: Serve Happy
type: http
seq: 2
}

get {
url: https://{{API_URL}}/core/serve-happy/:api_version/?php_version=8.0
body: none
auth: none
}

params:query {
php_version: 8.0
}

params:path {
api_version: 1.0
}
19 changes: 19 additions & 0 deletions bruno/Plugins/Plugin Checksums.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
meta {
name: Plugin Checksums
type: http
seq: 3
}

get {
url: https://{{DOWNLOADS_URL}}/plugin-checksums/
body: none
auth: none
}

headers {
Host: api.wordpress.org
User-Agent: WordPress/6.2.2; http://172.18.0.5
Accept: */*
Accept-Encoding: deflate, gzip
Connection: Keep-Alive
}
24 changes: 24 additions & 0 deletions bruno/Plugins/Plugin Info.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
meta {
name: Plugin Info
type: http
seq: 4
}

get {
url: https://{{API_URL}}/plugins/info/:api_version/:slug
body: none
auth: none
}

params:path {
slug: newpath-wildapricot-press.json
api_version: 1.0
}

headers {
Host: api.wordpress.org
User-Agent: WordPress/6.2.2; http://172.18.0.5/
Accept: */*
Accept-Encoding: deflate, gzip
Connection: Keep-Alive
}
42 changes: 42 additions & 0 deletions bruno/Plugins/Plugins Info.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
meta {
name: Plugins Info
type: http
seq: 1
}

get {
url: https://{{API_URL}}/plugins/info/:api_version/?action=query_plugins&request%5Bpage%5D=1&request%5Bper_page%5D=36&request%5Blocale%5D=en_US&request%5Bbrowse%5D=popular&request%5Bwp_version%5D=6.2
body: none
auth: none
}

params:query {
action: query_plugins
request[page]: 1
request[per_page]: 36
request[locale]: en_US
request[browse]: popular
request[wp_version]: 6.2
}

params:path {
api_version: 1.2
}

headers {
Host: api.wordpress.org
User-Agent: WordPress/6.2.2; http://172.18.0.5/
Accept: */*
Accept-Encoding: deflate, gzip
Connection: Keep-Alive
}

docs {
Note: You can find information about arguments and examples in the following blog articles:

[v1.2](https://wplake.org/blog/wordpress-org-api/)

[v1.0](http://wp.tutsplus.com/tutorials/plugins/communicating-with-the-wordpress-org-plugin-api/)

[v1.0](http://dd32.id.au/projects/wordpressorg-plugin-information-api-docs/)
}
35 changes: 35 additions & 0 deletions bruno/Plugins/Plugins Update Check.bru

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions bruno/Popular Import Plugins/List Popular Import Plugins.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
meta {
name: List Popular Import Plugins
type: http
seq: 1
}

get {
url: https://{{API_URL}}/core/importers/:api_version/
body: none
auth: none
}

params:path {
api_version: 1.1
}
Loading

0 comments on commit 6532e9f

Please sign in to comment.