Skip to main content

Get single news post

GET 

/news/:post_id

Get all data for a single news post. Only the latest 10 comments will be returned per wallpaper, if a wallpaper_id is attached to the post.

Request

Path Parameters

    post_id integerrequired

    The news post ID

Query Parameters

    show_comments boolean

    default: false

    show_pickle_jar boolean

    default: false

    show_resolutions boolean

    Default value: true

    show_wallpaper boolean

    Default value: true

Responses

Successful response

Schema

    db_core

    object

    The structure of all possible data include in the response. Not everything documented for db_core will always appear.

    timestamp integer

    endpoints

    object

    Endpoints to be used with all paths.* values

    api string

    Endpoint prefix for all paths.api values

    image string

    Endpoint prefix for all paths.image values

    thumb string

    Endpoint prefix for all paths.thumb values

    web string

    Endpoint prefix for all paths.web values

    request

    object

    The request data

    body object

    Contains the data provided within the body (POST) request.

    params object

    Contains the variables provided within the path/route.

    query object

    Contains the data provided within the query (GET) request.

    total_pages integer

    This value will appear in a pagination query to represent the maximum value for page

    post

    object

    id integer

    Object ID

    content string

    News post content.

    paths

    object

    api string

    Path to use with the db_core.endpoints.api

    web string

    Path to use with the db_core.endpoints.web

    timestamp integer
    title string

    Title of the news post.

    wallpaper_id integernullable

    Wallpaper ID

Loading...