'object', 'properties' => [ 'id' => [ 'type' => 'integer', 'description' => __( 'The WordPress term ID', 'tribe-common' ), ], 'name' => [ 'type' => 'string', 'description' => __( 'The term name', 'tribe-common' ), ], 'slug' => [ 'type' => 'string', 'description' => __( 'The term slug', 'tribe-common' ), ], 'taxonomy' => [ 'type' => 'string', 'description' => __( 'The taxonomy the term belongs to', 'tribe-common' ), ], 'description' => [ 'type' => 'string', 'description' => __( 'The term description', 'tribe-common' ), ], 'parent' => [ 'type' => 'integer', 'description' => __( 'The term parent term if any', 'tribe-common' ), ], 'count' => [ 'type' => 'integer', 'description' => __( 'The number of posts associated with the term', 'tribe-common' ), ], 'url' => [ 'type' => 'string', 'description' => __( 'The URL to the term archive page', 'tribe-common' ), ], 'urls' => [ 'type' => 'array', 'items' => [ 'type' => 'string' ], 'description' => __( 'A list of links to the term own, archive and parent REST URL', 'tribe-common' ), ], ], ]; /** * Filters the Swagger documentation generated for an term in the TEC REST API. * * @param array $documentation An associative PHP array in the format supported by Swagger. * * @link http://swagger.io/ */ $documentation = apply_filters( 'tribe_rest_swagger_term_documentation', $documentation ); return $documentation; } }