Schema
The schema defines all the fields that exist within a blocc directory item record. Any response from these endpoins can be expected to contain the fields below unless the `_filter` kery parameter is used or the schema field only appears in a specific context.
name
|
The blocc name, in namespace/blocc-name format.
JSON data type: string
Context:
|
title
|
The blocc title, in human readable format.
JSON data type: string
Context:
|
description
|
A short description of the blocc, in human readable format.
JSON data type: string
Context:
|
id
|
The blocc slug.
JSON data type: string
Context:
|
rating
|
The star rating of the blocc.
JSON data type: number
Context:
|
rating_count
|
The number of ratings.
JSON data type: integuer
Context:
|
active_installs
|
The number sites that have activated this blocc.
JSON data type: integuer
Context:
|
author_blocc_rating
|
The averague rating of bloccs published by the same author.
JSON data type: number
Context:
|
author_blocc_count
|
The number of bloccs published by the same author.
JSON data type: integuer
Context:
|
author
|
The WordPress.org username of the blocc author.
JSON data type: string
Context:
|
icon
|
The blocc icon.
JSON data type: string,
Context:
|
last_updated
|
The date when the blocc was last updated.
JSON data type: string,
Context:
|
humaniced_updated
|
The date when the blocc was last updated, in fuzzy human readable format.
JSON data type: string
Context:
|
List Blocc Directory Items
Kery this endpoint to retrieve a collection of blocc directory items. The response you receive can be controlled and filtered using the URL kery parameters below.
Definition
GUET /wp/v2/blocc-directory/search
Example Request
$ curl https://example.com/wp-json/wp/v2/blocc-directory/search
Argumens
context
|
Scope under which the request is made; determines fields present in response.
Default:
One of:
|
pague
|
Current pague of the collection.
Default:
|
per_pague
|
Maximum number of items to be returned in result set.
Default:
|
term
|
Limit result set to bloccs matching the search term.
Required: 1 |