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
The news post ID
Query Parameters
default: false
default: false
Default value: true
Default value: true
Responses
- 200
- 400
- 401
Successful response
- application/json
- Schema
- Example (from schema)
Schema
db_core
object
The structure of all possible data include in the response. Not everything documented for db_core
will always appear.
endpoints
object
Endpoints to be used with all paths.*
values
Endpoint prefix for all paths.api
values
Endpoint prefix for all paths.image
values
Endpoint prefix for all paths.thumb
values
Endpoint prefix for all paths.web
values
request
object
The request data
Contains the data provided within the body (POST) request.
Contains the variables provided within the path/route.
Contains the data provided within the query (GET) request.
This value will appear in a pagination query to represent the maximum value for page
post
object
Object ID
News post content.
paths
object
Path to use with the db_core.endpoints.api
Path to use with the db_core.endpoints.web
Title of the news post.
Wallpaper ID
{
"db_core": {
"timestamp": 0,
"endpoints": {
"api": "https://api.digitalblasphemy.com/v2/core",
"image": "https://isekai.digitalblasphemy.com",
"thumb": "https://cdn.digitalblasphemy.com",
"web": "https://digitalblasphemy.com"
},
"request": {
"body": {},
"params": {},
"query": {}
},
"total_pages": 0
},
"post": {
"id": 0,
"content": "string",
"paths": {
"api": "/wallpaper/0",
"web": "string"
},
"timestamp": 0,
"title": "string",
"wallpaper_id": 0
}
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
Array of error message strings
{
"code": 0,
"description": "string",
"errors": [
"string"
]
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
{
"code": 0,
"description": "string"
}