java.lang.Object
io.github.evisentin.wordpress.client.domain.model.WpResource
Direct Known Subclasses:
WpMedia, WpPost

public abstract class WpResource extends Object
Base class for WordPress content resources exposed through the WordPress REST API.

This model contains the metadata and configuration fields that are shared by multiple WordPress resource types, such as posts, pages, media attachments, and custom post types. It provides common properties including identifiers, publication and modification dates, permalink information, rendered fields, authorship metadata, and discussion settings.

Concrete resource implementations extend this class to add resource-specific attributes while inheriting the common structure defined by the WordPress REST API.

Unknown JSON properties are ignored during deserialization to ensure forward compatibility with future WordPress API versions.

  • Constructor Details

    • WpResource

      public WpResource()