TWreporter Go API
TWReporter API for main site(https://www.twreporter.org)
Periodic Donation ¶
Periodic donation resources of go-api
Periodic Donation ¶
A single Periodic Donation The Periodic Donation is the resource in the TWReporter Donation API. It reprensents one periodic donation record identified by the order number(:order).
The Periodic Donation resource has the following attributes;
-
id
-
amount
-
card_info
-
card_info.bind_code
-
card_info.country
-
card_info.country_code
-
card_info.expiry_date
-
card_info.funding
-
card_info.issuer
-
card_info.last_four
-
card_info.level
-
card_info.type
-
cardholder
-
cardholder.address
-
cardholder.email
-
cardholder.national_id
-
cardholder.phone_number
-
cardholder.zip_code
-
currency
-
details
-
frequency
-
notes
-
order_number
-
send_receipt
-
to_feedback
-
max_paid_times
-
is_anonymous
-
receipt_header
The states id and order_number are assigned by the TWReporter Go API at the moment of creation.
Retrieve a Single Periodic DonationGET/v1/periodic-donations/orders/{order}
Example URI
- order
string
(required)an order number of a Periodic Donation
Headers
Cookie: id_token=<id_token>
Authorization: Bearer <jwt>
200
Body
{
"status": "success",
"data": {
"id": 1,
"amount": 500,
"currency": "TWD",
"details": "報導者定期定額捐款",
"frequency": "monthly",
"notes": "第一次捐給報導者喔",
"order_number": "twreporter-153985253506653918900",
"send_receipt": "monthly",
"to_feedback": true,
"is_anonymous": false,
"receipt_header": "王小明",
"cardholder": {
"email": "developer@twreporter.org",
"name": "王小明",
"address": "台北市南京東路一段300巷300號6樓",
"phone_number": "+886912345678",
"national_id": "A12345678",
"zip_code": "104"
}
}
}
Schema
{
"type": "object",
"properties": {
"status": {
"type": "string"
},
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"amount": {
"type": "number"
},
"currency": {
"type": "string"
},
"details": {
"type": "string"
},
"frequency": {
"type": "string"
},
"notes": {
"type": "string"
},
"order_number": {
"type": "string"
},
"send_receipt": {
"type": "string"
},
"to_feedback": {
"type": "boolean"
},
"is_anonymous": {
"type": "boolean"
},
"receipt_header": {
"type": "string"
},
"cardholder": {
"type": "object",
"properties": {
"email": {
"type": "string"
},
"name": {
"type": "string"
},
"address": {
"type": "string"
},
"phone_number": {
"type": "string"
},
"national_id": {
"type": "string"
},
"zip_code": {
"type": "string"
}
},
"required": [
"email"
]
}
},
"required": [
"id",
"amount",
"currency",
"details",
"frequency",
"order_number",
"send_receipt",
"to_feedback",
"is_anonymous",
"cardholder"
]
}
},
"required": [
"status"
],
"$schema": "http://json-schema.org/draft-04/schema#"
}
401
Headers
Content-Type: application/json
Body
{
"status": "fail",
"data": {
"req.Headers.Authorization": "JWT is not valid"
}
}
403
Headers
Content-Type: application/json
Body
{
"status": "fail",
"data": {
"req.Headers.Authorization": "request is not permitted for the resource"
}
}
404
Headers
Content-Type: application/json
Body
{
"status": "fail",
"data": {
"req.URL": "url can not address a resource"
}
}
500
Headers
Content-Type: application/json
Body
{
"status": "error",
"message": "unknown error."
}
Modify a Single Periodic DonationPATCH/v1/periodic-donations/orders/{order}
Example URI
- order
string
(required)an order number of the Periodic Donation
Headers
Content-Type: application/json
Cookie: id_token=<id_token>
Authorization: Bearer <jwt>
Body
{
"donor": {
"address": "台北市南京東路一段300巷300號6樓",
"email": "developer@twreporter.org",
"name": "王小明",
"phone_number": "+886912345678",
"national_id": "A12345678"
},
"notes": "第一次捐款報導者喔",
"send_receipt": "yearly",
"to_feedback": "false",
"user_id": "1",
"is_anonymous": "true",
"receipt_header": "王小明"
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"donor": {
"type": "object",
"properties": {
"address": {
"type": "string"
},
"email": {
"type": "string"
},
"name": {
"type": "string"
},
"phone_number": {
"type": "string"
},
"national_id": {
"type": "string"
}
}
},
"notes": {
"type": "string"
},
"send_receipt": {
"type": "string"
},
"to_feedback": {
"type": "string"
},
"user_id": {
"type": "string"
},
"is_anonymous": {
"type": "string"
},
"receipt_header": {
"type": "string"
}
},
"required": [
"user_id"
]
}
204
400
Headers
Content-Type: application/json
Body
{
"status": "fail",
"data": {
"donor": {
"email": "email(string) is optional",
"address": "address(string) is optional",
"name": "name(string) is optional",
"zip_code": "zip_code(string) is optional",
"phone_number": "phone_number(string) is optional",
"national_id": "national_id(string) is optional"
},
"notes": "notes(string) is optional",
"send_receipt": "send_receipt(string) is optional. only support 'no', 'monthly' and 'yearly'",
"to_feedback": "to_feedback(bool) is optional.",
"is_anonymous": "is_anonymous(bool) is optional.",
"user_id": "user_id(number) is required",
"receipt_header": "receipt_header(string) is optional"
}
}
401
Headers
Content-Type: application/json
Body
{
"status": "fail",
"data": {
"req.Headers.Authorization": "JWT is not valid"
}
}
403
Headers
Content-Type: application/json
Body
{
"status": "fail",
"data": {
"req.Headers.Authorization": "request is not permitted for the resource"
}
}
500
Headers
Content-Type: application/json
Body
{
"status": "error",
"message": "unknown error."
}
Periodic Donation ¶
Create a Single Periodic DonationPOST/v1/periodic_donations
Example URI
Headers
Content-Type: application/merge-patch+json
Cookie: id_token=<id_token>
Authorization: Bearer <jwt>
Body
{
"amount": 500,
"currency": "TWD",
"details": "報導者定期定額捐款",
"donor": {
"email": "developer@twporter.org"
},
"frequency": "monthly",
"prime": "test_3a2fb2b7e892b914a03c95dd4dd5dc7970c908df67a49527c0a648b2bc9",
"merchant_id": "twreporter_CTBC",
"user_id": 1,
"max_paid_times": 3
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"amount": {
"type": "number"
},
"currency": {
"type": "string"
},
"details": {
"type": "string"
},
"donor": {
"type": "object",
"properties": {
"email": {
"type": "string"
}
},
"required": [
"email"
]
},
"frequency": {
"type": "string"
},
"prime": {
"type": "string"
},
"merchant_id": {
"type": "string"
},
"user_id": {
"type": "number"
},
"max_paid_times": {
"type": "number"
}
},
"required": [
"amount",
"donor",
"frequency",
"prime",
"user_id"
]
}
201
Body
{
"status": "success",
"data": {
"id": 1,
"amount": 500,
"currency": "TWD",
"details": "報導者定期定額捐款",
"frequency": "monthly",
"notes": "第一次捐給報導者喔",
"order_number": "twreporter-153985253506653918900",
"send_receipt": "monthly",
"to_feedback": true,
"is_anonymous": false,
"receipt_header": "王小明",
"cardholder": {
"email": "developer@twreporter.org",
"name": "王小明",
"address": "台北市南京東路一段300巷300號6樓",
"phone_number": "+886912345678",
"national_id": "A12345678",
"zip_code": "104"
}
}
}
Schema
{
"type": "object",
"properties": {
"status": {
"type": "string"
},
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"amount": {
"type": "number"
},
"currency": {
"type": "string"
},
"details": {
"type": "string"
},
"frequency": {
"type": "string"
},
"notes": {
"type": "string"
},
"order_number": {
"type": "string"
},
"send_receipt": {
"type": "string"
},
"to_feedback": {
"type": "boolean"
},
"is_anonymous": {
"type": "boolean"
},
"receipt_header": {
"type": "string"
},
"cardholder": {
"type": "object",
"properties": {
"email": {
"type": "string"
},
"name": {
"type": "string"
},
"address": {
"type": "string"
},
"phone_number": {
"type": "string"
},
"national_id": {
"type": "string"
},
"zip_code": {
"type": "string"
}
},
"required": [
"email"
]
}
},
"required": [
"id",
"amount",
"currency",
"details",
"frequency",
"order_number",
"send_receipt",
"to_feedback",
"is_anonymous",
"cardholder"
]
}
},
"required": [
"status"
],
"$schema": "http://json-schema.org/draft-04/schema#"
}
400
Headers
Content-Type: application/json
Body
{
"status": "fail",
"data": {
"prime": "prime(string) is required",
"amount": "amount(number) is required",
"donor": {
"email": "email(string) is required",
},
"details": "details(string) is optional",
"merchant_id": "merchant_id(string) is optional",
"frequency": "frequency(string) is required. Only support 'monthly' and 'yearly'",
"user_id": "user_id(number) is required",
"max_paid_times": "max_paid_times(unsigned number) is optional, default: 2147483647"
}
}
401
Headers
Content-Type: application/json
Body
{
"status": "fail",
"data": {
"req.Headers.Authorization": "JWT is not valid"
}
}
403
Headers
Content-Type: application/json
Body
{
"status": "fail",
"data": {
"req.Headers.Authorization": "request is not permitted for the resource"
}
}
500
Headers
Content-Type: application/json
Body
{
"status": "error",
"message": "unknown error."
}
Prime Donation ¶
Prime donation resources of go-api
Prime Donation ¶
A single Prime Donation. The Prime Donation is the resource in the TWReporter Donation API. It reprensents one prime donation record identified by the order number (order).
The Prime Donation resource has the following attributes;
-
id
-
amount
-
card_info
-
card_info.bind_code
-
card_info.country
-
card_info.country_code
-
card_info.expiry_date
-
card_info.funding
-
card_info.issuer
-
card_info.last_four
-
card_info.level
-
card_info.type
-
cardholder
-
cardholder.address
-
cardholder.email
-
cardholder.national_id
-
cardholder.phone_number
-
cardholder.zip_code
-
currency
-
details
-
frequency
-
notes
-
order_number
-
pay_method
-
send_receipt
-
is_anonymous
-
receipt_header
The states id and order_number are assigned by the TWReporter Go API at the moment of creation.
Retrieve a Single Prime DonationGET/v1/donations/prime/orders/{order}
Example URI
- order
string
(required)an order number of the Prime Donation
Headers
Cookie: id_token=<id_token>
Authorization: Bearer <jwt>
200
Body
{
"id": 1,
"amount": 500,
"currency": "TWD",
"details": "報導者單筆捐款",
"notes": "第一次捐給報導者喔",
"order_number": "twreporter-153985253506653918900",
"send_receipt": "monthly",
"pay_method": "credit_card",
"is_anonymous": false,
"receipt_header": "王小明",
"cardholder": {
"email": "developer@twreporter.org",
"name": "王小明",
"address": "台北市南京東路一段300巷300號6樓",
"phone_number": "+886912345678",
"national_id": "A12345678",
"zip_code": "104"
}
}
Schema
{
"type": "object",
"properties": {
"id": {
"type": "number"
},
"amount": {
"type": "number"
},
"currency": {
"type": "string"
},
"details": {
"type": "string"
},
"notes": {
"type": "string"
},
"order_number": {
"type": "string"
},
"send_receipt": {
"type": "string"
},
"pay_method": {
"type": "string"
},
"is_anonymous": {
"type": "boolean"
},
"receipt_header": {
"type": "string"
},
"cardholder": {
"type": "object",
"properties": {
"email": {
"type": "string"
},
"name": {
"type": "string"
},
"address": {
"type": "string"
},
"phone_number": {
"type": "string"
},
"national_id": {
"type": "string"
},
"zip_code": {
"type": "string"
}
},
"required": [
"email"
]
}
},
"required": [
"id",
"amount",
"currency",
"details",
"order_number",
"send_receipt",
"pay_method",
"is_anonymous",
"cardholder"
],
"$schema": "http://json-schema.org/draft-04/schema#"
}
401
Headers
Content-Type: application/json
Body
{
"status": "fail",
"data": {
"req.Headers.Authorization": "JWT is not valid"
}
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string"
},
"data": {
"type": "object",
"properties": {
"req.Headers.Authorization": {
"type": "string"
}
}
}
}
}
403
Headers
Content-Type: application/json
Body
{
"status": "fail",
"data": {
"req.Headers.Authorization": "request is not permitted for the resource"
}
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string"
},
"data": {
"type": "object",
"properties": {
"req.Headers.Authorization": {
"type": "string"
}
}
}
}
}
404
Headers
Content-Type: application/json
Body
{
"status": "fail",
"data": {
"req.URL": "url can not address a resource"
}
}
500
Headers
Content-Type: application/json
Body
{
"status": "error",
"message": "unknown error"
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string"
},
"message": {
"type": "string"
}
}
}
Modify a Single Prime DonationPATCH/v1/donations/prime/orders/{order}
Example URI
- order
string
(required)an order number of the Prime Donation
Headers
Content-Type: application/json
Cookie: id_token=<id_token>
Authorization: Bearer <jwt>
Body
{
"donor": {
"address": "台北市南京東路一段300巷300號6樓",
"email": "developer@twreporter.org",
"name": "王小明",
"phone_number": "+886912345678",
"national_id": "A12345678"
},
"notes": "第一次捐款報導者喔",
"send_receipt": "no",
"is_anonymous": "true",
"user_id": "1",
"receipt_header": "王小明"
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"donor": {
"type": "object",
"properties": {
"address": {
"type": "string"
},
"email": {
"type": "string"
},
"name": {
"type": "string"
},
"phone_number": {
"type": "string"
},
"national_id": {
"type": "string"
}
}
},
"notes": {
"type": "string"
},
"send_receipt": {
"type": "string"
},
"is_anonymous": {
"type": "string"
},
"user_id": {
"type": "string"
},
"receipt_header": {
"type": "string"
}
},
"required": [
"user_id"
]
}
204
400
Headers
Content-Type: application/json
Body
{
"status": "fail",
"data": {
"donor": {
"email": "email(string) is optional",
"address": "address(string) is optional",
"name": "name(string) is optional",
"zip_code": "zip_code(string) is optional",
"phone_number": "phone_number(string) is optional",
"national_id": "national_id(string) is optional"
},
"notes": "notes(string) is optional",
"send_receipt": "send_receipt(string) is optional. only support 'no', 'monthly' and 'yearly'",
"is_anonymous": "is_anonymous(bool) is optional.",
"user_id": "user_id(number) is required",
"receipt_header": "receipt_header(string) is optional"
}
}
401
Headers
Content-Type: application/json
Body
{
"status": "fail",
"data": {
"req.Headers.Authorization": "JWT is not valid"
}
}
403
Headers
Content-Type: application/json
Body
{
"status": "fail",
"data": {
"req.Headers.Authorization": "request is not permitted for the resource"
}
}
500
Headers
Content-Type: application/json
Body
{
"status": "error",
"message": "unknown error."
}
Transaction Verification Information ¶
Endpoint for frontend server to retrieve information for transaction verification. Only the linepay is required to do this verfication
Retrieve verification information of an orderGET/v1/donations/prime/orders/{order}/transaction_verification
Example URI
- order
string
(required)an order number of the Prime Donation
Headers
Cookie: id_token=<id_token>
Authorization: Bearer <jwt>
200
Body
{
"rec_trade_id": "LN201711088cHQHr",
"bank_transaction_id": "TP201711088cHQHr",
"status": "paying"
}
Schema
{
"type": "object",
"properties": {
"rec_trade_id": {
"type": "string"
},
"bank_transaction_id": {
"type": "string"
},
"status": {
"type": "string"
}
},
"required": [
"rec_trade_id",
"bank_transaction_id"
],
"$schema": "http://json-schema.org/draft-04/schema#"
}
401
Headers
Content-Type: application/json
Body
{
"status": "fail",
"data": {
"req.Headers.Authorization": "JWT is not valid"
}
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string"
},
"data": {
"type": "object",
"properties": {
"req.Headers.Authorization": {
"type": "string"
}
}
}
}
}
403
Headers
Content-Type: application/json
Body
{
"status": "fail",
"data": {
"req.Headers.Authorization": "request is not permitted for the resource"
}
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string"
},
"data": {
"type": "object",
"properties": {
"req.Headers.Authorization": {
"type": "string"
}
}
}
}
}
404
Headers
Content-Type: application/json
Body
{
"status": "fail",
"data": {
"req.URL": "url can not address a resource"
}
}
500
Headers
Content-Type: application/json
Body
{
"status": "error",
"message": "unknown error"
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string"
},
"message": {
"type": "string"
}
}
}
Prime Donation ¶
Create a Single Prime DonationPOST/v1/donations/prime
Example URI
Credit Card
Headers
Content-Type: application/merge-patch+json
Cookie: id_token=<id_token>
Authorization: Bearer <jwt>
Body
{
"amount": 500,
"currency": "TWD",
"details": "報導者單筆捐款",
"donor": {
"email": "developer@twporter.org"
},
"prime": "test_3a2fb2b7e892b914a03c95dd4dd5dc7970c908df67a49527c0a648b2bc9",
"pay_method": "credit_card",
"merchant_id": "twreporter_CTBC",
"user_id": 1
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"amount": {
"type": "number"
},
"currency": {
"type": "string"
},
"details": {
"type": "string"
},
"donor": {
"type": "object",
"properties": {
"email": {
"type": "string"
}
},
"required": [
"email"
]
},
"prime": {
"type": "string"
},
"pay_method": {
"type": "string"
},
"merchant_id": {
"type": "string"
},
"user_id": {
"type": "number"
}
},
"required": [
"amount",
"donor",
"prime",
"pay_method",
"user_id"
]
}
201
Body
{
"status": "success",
"data": {
"id": 1,
"amount": 500,
"currency": "TWD",
"details": "報導者單筆捐款",
"notes": "第一次捐給報導者喔",
"order_number": "twreporter-153985253506653918900",
"send_receipt": "monthly",
"pay_method": "credit_card",
"is_anonymous": false,
"receipt_header": "王小明",
"cardholder": {
"email": "developer@twreporter.org",
"name": "王小明",
"address": "台北市南京東路一段300巷300號6樓",
"phone_number": "+886912345678",
"national_id": "A12345678",
"zip_code": "104"
}
}
}
Schema
{
"type": "object",
"properties": {
"status": {
"type": "string"
},
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"amount": {
"type": "number"
},
"currency": {
"type": "string"
},
"details": {
"type": "string"
},
"notes": {
"type": "string"
},
"order_number": {
"type": "string"
},
"send_receipt": {
"type": "string"
},
"pay_method": {
"type": "string"
},
"is_anonymous": {
"type": "boolean"
},
"receipt_header": {
"type": "string"
},
"cardholder": {
"type": "object",
"properties": {
"email": {
"type": "string"
},
"name": {
"type": "string"
},
"address": {
"type": "string"
},
"phone_number": {
"type": "string"
},
"national_id": {
"type": "string"
},
"zip_code": {
"type": "string"
}
},
"required": [
"email"
]
}
},
"required": [
"id",
"amount",
"currency",
"details",
"order_number",
"send_receipt",
"pay_method",
"is_anonymous",
"cardholder"
]
}
},
"required": [
"status"
],
"$schema": "http://json-schema.org/draft-04/schema#"
}
400
Headers
Content-Type: application/json
Body
{
"status": "fail",
"data": {
"prime": "prime(string) is required",
"amount": "amount(number) is required",
"donor": {
"email": "email(string) is required"
},
"details": "details(string) is optional",
"merchant_id": "merchant_id(string) is optional",
"pay_method": "pay_method(string) is required, currently only support credit_card and line",
"user_id": "user_id(number) is required"
}
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string"
},
"data": {
"type": "object",
"properties": {
"prime": {
"type": "string"
},
"amount": {
"type": "string"
},
"donor": {
"type": "object",
"properties": {
"email": {
"type": "string"
}
}
},
"details": {
"type": "string"
},
"merchant_id": {
"type": "string"
},
"pay_method": {
"type": "string"
},
"user_id": {
"type": "string"
}
}
}
}
}
401
Headers
Content-Type: application/json
Body
{
"status": "fail",
"data": {
"req.Headers.Authorization": "JWT is not valid"
}
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string"
},
"data": {
"type": "object",
"properties": {
"req.Headers.Authorization": {
"type": "string"
}
}
}
}
}
403
Headers
Content-Type: application/json
Body
{
"status": "fail",
"data": {
"req.Headers.Authorization": "request is not permitted for the resource"
}
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string"
},
"data": {
"type": "object",
"properties": {
"req.Headers.Authorization": {
"type": "string"
}
}
}
}
}
500
Headers
Content-Type: application/json
Body
{
"status": "error",
"message": "unknown error"
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string"
},
"message": {
"type": "string"
}
}
}
Line Pay
Headers
Content-Type: application/merge-patch+json
Cookie: id_token=<id_token>
Authorization: Bearer <jwt>
Body
{
"amount": 500,
"currency": "TWD",
"details": "報導者單筆捐款",
"donor": {
"email": "developer@twporter.org"
},
"prime": "test_3a2fb2b7e892b914a03c95dd4dd5dc7970c908df67a49527c0a648b2bc9",
"pay_method": "line",
"merchant_id": "TW_LINE_PAY",
"user_id": 1
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"amount": {
"type": "number"
},
"currency": {
"type": "string"
},
"details": {
"type": "string"
},
"donor": {
"type": "object",
"properties": {
"email": {
"type": "string"
}
},
"required": [
"email"
]
},
"prime": {
"type": "string"
},
"pay_method": {
"type": "string"
},
"merchant_id": {
"type": "string"
},
"user_id": {
"type": "number"
}
},
"required": [
"amount",
"donor",
"prime",
"pay_method",
"user_id"
]
}
201
Body
{
"status": "success",
"data": {
"id": 1,
"amount": 500,
"currency": "TWD",
"details": "報導者單筆捐款",
"notes": "第一次捐給報導者喔",
"order_number": "twreporter-153985253506653918900",
"send_receipt": "monthly",
"pay_method": "credit_card",
"is_anonymous": false,
"receipt_header": "王小明",
"cardholder": {
"email": "developer@twreporter.org",
"name": "王小明",
"address": "台北市南京東路一段300巷300號6樓",
"phone_number": "+886912345678",
"national_id": "A12345678",
"zip_code": "104"
},
"payment_url": "https://sandbox-redirect.tappaysdk.com/redirect/906ec8348e5e893e098e56f1c061ae178fc80d193649305e83ca8788054e839d"
}
}
Schema
{
"type": "object",
"properties": {
"status": {
"type": "string"
},
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"amount": {
"type": "number"
},
"currency": {
"type": "string"
},
"details": {
"type": "string"
},
"notes": {
"type": "string"
},
"order_number": {
"type": "string"
},
"send_receipt": {
"type": "string"
},
"pay_method": {
"type": "string"
},
"is_anonymous": {
"type": "boolean"
},
"receipt_header": {
"type": "string"
},
"cardholder": {
"type": "object",
"properties": {
"email": {
"type": "string"
},
"name": {
"type": "string"
},
"address": {
"type": "string"
},
"phone_number": {
"type": "string"
},
"national_id": {
"type": "string"
},
"zip_code": {
"type": "string"
}
},
"required": [
"email"
]
},
"payment_url": {
"type": "string"
}
},
"required": [
"id",
"amount",
"currency",
"details",
"order_number",
"send_receipt",
"pay_method",
"is_anonymous",
"cardholder"
]
}
},
"required": [
"status"
],
"$schema": "http://json-schema.org/draft-04/schema#"
}
400
Headers
Content-Type: application/json
Body
{
"status": "fail",
"data": {
"prime": "prime(string) is required",
"amount": "amount(number) is required",
"donor": {
"email": "email(string) is required"
},
"details": "details(string) is optional",
"merchant_id": "merchant_id(string) is optional",
"pay_method": "pay_method(string) is required, currently only support credit_card and line",
"user_id": "user_id(number) is required"
}
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string"
},
"data": {
"type": "object",
"properties": {
"prime": {
"type": "string"
},
"amount": {
"type": "string"
},
"donor": {
"type": "object",
"properties": {
"email": {
"type": "string"
}
}
},
"details": {
"type": "string"
},
"merchant_id": {
"type": "string"
},
"pay_method": {
"type": "string"
},
"user_id": {
"type": "string"
}
}
}
}
}
401
Headers
Content-Type: application/json
Body
{
"status": "fail",
"data": {
"req.Headers.Authorization": "JWT is not valid"
}
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string"
},
"data": {
"type": "object",
"properties": {
"req.Headers.Authorization": {
"type": "string"
}
}
}
}
}
403
Headers
Content-Type: application/json
Body
{
"status": "fail",
"data": {
"req.Headers.Authorization": "request is not permitted for the resource"
}
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string"
},
"data": {
"type": "object",
"properties": {
"req.Headers.Authorization": {
"type": "string"
}
}
}
}
}
500
Headers
Content-Type: application/json
Body
{
"status": "error",
"message": "unknown error"
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string"
},
"message": {
"type": "string"
}
}
}
Line Pay Backend Notification ¶
Endpoint for tappay server to notify line pay transaction result
Notify Line Transaction EndpointPOST/v1/donations/prime/line-notify
Example URI
with body
Headers
Content-Type: application/json
Body
{
"rec_trade_id": "LN201711088cHQHr",
"bank_transaction_id": "TP201711088cHQHr",
"order_number": "twreporter",
"amount": 500,
"status": 0,
"msg": "Success",
"transaction_time_millis": 1510136365539,
"pay_info": {
"method": "CREDIT_CARD",
"masked_credit_card_number": "************4242",
"point": 0
},
"acquirer": "TW_LINE_PAY",
"bank_result_code": 0,
"bank_result_msg": "Hello, world!"
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"rec_trade_id": {
"type": "string"
},
"bank_transaction_id": {
"type": "string"
},
"order_number": {
"type": "string",
"description": "153985253506653918901 (required)"
},
"amount": {
"type": "number"
},
"status": {
"type": "number"
},
"msg": {
"type": "string"
},
"transaction_time_millis": {
"type": "number"
},
"pay_info": {
"type": "object",
"properties": {
"method": {
"type": "string"
},
"masked_credit_card_number": {
"type": "string"
},
"point": {
"type": "number"
}
}
},
"acquirer": {
"type": "string"
},
"bank_result_code": {
"type": "number"
},
"bank_result_msg": {
"type": [
"string",
"null"
]
}
},
"required": [
"rec_trade_id",
"bank_transaction_id",
"amount",
"status",
"msg",
"transaction_time_millis",
"pay_info",
"acquirer"
]
}
204
400
Headers
Content-Type: application/json
422
Headers
Content-Type: application/json
Tappay Synchronization ¶
Tappay Record ¶
Post to get a tappay recordPOST/v1/tappay_query
Post to get a tappay record
Example URI
Headers
Content-Type: application/json
Cookie: id_token=<id_token>
Authorization: Bearer <jwt>
Body
{
"records_per_page": 1,
"filters": {
"order_number": "twreporter-153371414230837160610"
}
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"records_per_page": {
"type": "number"
},
"filters": {
"type": "object",
"properties": {
"order_number": {
"type": "string"
}
},
"required": [
"order_number"
]
}
}
}
200
Body
{
"status": "Success",
"data": {
"status": 0,
"msg": "\"\"",
"trade_records": [
{
"record_status": 0
}
]
}
}
Schema
{
"type": "object",
"properties": {
"status": {
"type": "string"
},
"data": {
"type": "object",
"properties": {
"status": {
"type": "number"
},
"msg": {
"type": "string"
},
"trade_records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"record_status": {
"type": "number"
}
}
}
}
},
"required": [
"status",
"msg"
]
}
},
"required": [
"status"
],
"$schema": "http://json-schema.org/draft-04/schema#"
}
401
Headers
Content-Type: application/json
Body
{
"status": "fail",
"data": {
"req.Headers.Authorization": "JWT is not valid"
}
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string"
},
"data": {
"type": "object",
"properties": {
"req.Headers.Authorization": {
"type": "string"
}
}
}
}
}
403
Headers
Content-Type: application/json
Body
{
"status": "fail",
"data": {
"req.Headers.Authorization": "request is not permitted for the resource"
}
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string"
},
"data": {
"type": "object",
"properties": {
"req.Headers.Authorization": {
"type": "string"
}
}
}
}
}
404
Headers
Content-Type: application/json
Body
{
"status": "fail",
"data": {
"filters": {
"order_number": "not found"
}
}
}
500
Body
{
"status": "error",
"message": "unknown error"
}
Schema
{
"type": "object",
"properties": {
"status": {
"type": "string"
},
"message": {
"type": "string"
}
},
"$schema": "http://json-schema.org/draft-04/schema#"
}
Email Service ¶
Email service of TWreporter Go API
Thank-You Donation Email ¶
Send thank-you donation email to a user. The email contains the following attributes
-
address - address of the user
-
amount - donation amount
-
card_info_last_four - last four number of credit card, e.g. 4242
-
card_info_type - type of credit card, e.g. VISA
-
currency - donation currency, e.g. TWD
-
donation_timestamp - timestamp of donation made, e.g. 1541641779
-
donation_link - URL of the web page of the donation
-
donation_method - the way user pay the money, e.g. 信用卡支付
-
donation_type - donation type, e.g. 定期定額
-
email - email of the user
-
name - name of the user
-
national_id - national id of the user
-
order_number - donation order number
-
phone_number - phone number of the user
Send a Thank-You Donation Email to a UserPOST/v1/mail/send_success_donation
Example URI
Headers
Content-Type: application/json
Authorization: Bearer <jwt>
Body
{
"address": "台北市南京東路一段100號",
"amount": 500,
"card_info_last_four": "4242",
"card_info_type": "visa",
"currency": "TWD",
"donation_timestamp": "1541641779",
"donation_link": "https://support.twreporter.org/",
"donation_method": "信用卡支付",
"donation_type": "定期定額",
"email": "developer@twreporter.org",
"name": "王小明",
"national_id": "A12345678",
"order_number": "twreporter-154081514233102449410",
"phone_number": "0225602020"
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"address": {
"type": "string"
},
"amount": {
"type": "number"
},
"card_info_last_four": {
"type": "string"
},
"card_info_type": {
"type": "string"
},
"currency": {
"type": "string"
},
"donation_timestamp": {
"type": "string"
},
"donation_link": {
"type": "string"
},
"donation_method": {
"type": "string"
},
"donation_type": {
"type": "string"
},
"email": {
"type": "string"
},
"name": {
"type": "string"
},
"national_id": {
"type": "string"
},
"order_number": {
"type": "string"
},
"phone_number": {
"type": "string"
}
},
"required": [
"amount",
"donation_method",
"donation_type",
"email",
"order_number"
]
}
204
400
Headers
Content-Type: application/json
Body
{
"status": "fail",
"data": {
"address": "address is optional"
"amount": "amount(number) is required",
"card_info_last_four": "card_info_last_four is optional",
"card_info_type": "card_info_type is optional",
"currency": "currency is optional, default is TWD",
"donation_timestamp": "donation_timestamp is optional, default is current timestamp",
"donation_link": "donation_link is optional",
"donation_method": "donation_method is required",
"donation_type": "donation_type is required",
"email": "email is required",
"name": "name is optional",
"national_id": "national_id is optional",
"order_number": "order_number is required",
"phone_number": "phone_number is optional"
}
}
401
Headers
Content-Type: application/json
Body
{
"status": "fail",
"data": {
"req.Headers.Authorization": "JWT is not valid"
}
}
500
Headers
Content-Type: application/json
Body
{
"status": "error",
"message": "unknown error."
}
Membership Service ¶
Twreporter Membership service api
Signin ¶
Validate the logining user and send the activation email
User signinsPOST/v2/signin
Example URI
with Body
Headers
Content-Type: application/json
Body
{
"email": "user@example.com",
"destination": "https://www.twreporter.org"
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"email": {
"type": "string"
},
"destination": {
"type": "string"
}
},
"required": [
"email"
]
}
200
Headers
Content-Type: application/json
Body
{
"status": "success",
"data": {
"email": "user@example.com",
"destination": "https://www.twreporter.org"
}
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string"
},
"data": {
"type": "object",
"properties": {
"email": {
"type": "string"
},
"destination": {
"type": "string"
}
},
"required": [
"email"
]
}
},
"required": [
"status",
"data"
]
}
201
Headers
Content-Type: application/json
Body
{
"status": "success",
"data": {
"email": "user@example.com",
"destination": "https://www.twreporter.org"
}
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string"
},
"data": {
"type": "object",
"properties": {
"email": {
"type": "string"
},
"destination": {
"type": "string"
}
},
"required": [
"email"
]
}
},
"required": [
"status",
"data"
]
}
400
Body
{
"status": "fail",
"data": {
"email": "\"email is required\"",
"destination": "\"destination is optional\""
}
}
Schema
{
"type": "object",
"properties": {
"status": {
"type": "string"
},
"data": {
"type": "object",
"properties": {
"email": {
"type": "string"
},
"destination": {
"type": "string"
}
}
}
},
"required": [
"status"
],
"$schema": "http://json-schema.org/draft-04/schema#"
}
500
Body
{
"status": "error",
"message": "\"Generating active token occurs error\""
}
Schema
{
"type": "object",
"properties": {
"status": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"status"
],
"$schema": "http://json-schema.org/draft-04/schema#"
}
Activate ¶
Send identity token if valid user sigins
Activate userGET/v2/activate{?email,token,destination}
Example URI
string
(required) Example: user@example.com- token
string
(required) Example: 26dlFidiTVY=- destination
string
(optional) Example: https://www.twreporter.org
302
Headers
Set-Cookie: id_token=<cookie value>; Domain=twreporter.org; Max-Age=15552000; HttpOnly; Secure
Token ¶
Authenticate user request and grant access token to the corresponding domain
Dispatch access tokenPOST/v2/token
Example URI
Headers
Cookie: id_token=<cookie value>
200
Body
{
"status": "success",
"data": {
"jwt": "access_token"
}
}
Schema
{
"type": "object",
"properties": {
"status": {
"type": "string"
},
"data": {
"type": "object",
"properties": {
"jwt": {
"type": "string"
}
},
"required": [
"jwt"
]
}
},
"required": [
"status"
],
"$schema": "http://json-schema.org/draft-04/schema#"
}
401
Body
{
"status": "fail",
"data": {
"req.Headers.Cookie.id_token": "id_token is invalid"
}
}
Schema
{
"type": "object",
"properties": {
"status": {
"type": "string"
},
"data": {
"type": "object",
"properties": {
"req.Headers.Cookie.id_token": {
"type": "string"
}
}
}
},
"required": [
"status"
],
"$schema": "http://json-schema.org/draft-04/schema#"
}
500
Body
{
"status": "error",
"message": "cannot get user data"
}
Schema
{
"type": "object",
"properties": {
"status": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"status"
],
"$schema": "http://json-schema.org/draft-04/schema#"
}
Oauth Service ¶
Google oauth request ¶
Redirect a user request to google oauth server
Redirect google requestGET/v2/auth/google{?destination}
Example URI
- destination
string
(required) Example: https://www.twreporter.org
302
Google oauth response ¶
Process user information from google and grants identity token
Response google callbackGET/v2/auth/google/callback{?state,code}
Example URI
- state
string
(required) Example: grqsh0n3OgO-0RCavx7NOASlCNyfoNU8k_Ty6_ZcrCM%3D- code
string
(required) Example: 4/1ADU33t4EZbMkrnH7GNCbIF9eQtRgoGNmM3Wy6Ika8SQXtroi8nSHpqsDjvwda87xvQQ-0fbxFI5hl0-V_f37Kg
302
Headers
Set-Cookie: id_token=<cookie value>; Domain=twreporter.org; Max-Age=15552000; HttpOnly; Secure
Facebook oauth request ¶
Redirect a user request to facebook oauth server
Redirect facebook requestGET/v2/auth/facebook{?destination}
Example URI
- destination
string
(required) Example: https://www.twreporter.org
302
Facebook oauth response ¶
Process user information from facebook and grants identity token
Response facebook callbackGET/v2/auth/facebook/callback{?state,code}
Example URI
- state
string
(required) Example: grqsh0n3OgO-0RCavx7NOASlCNyfoNU8k_Ty6_ZcrCM%3D- code
string
(required) Example: 4/1ADU33t4EZbMkrnH7GNCbIF9eQtRgoGNmM3Wy6Ika8SQXtroi8nSHpqsDjvwda87xvQQ-0fbxFI5hl0-V_f37Kg
302
Headers
Set-Cookie: id_token=<cookie value>; Domain=twreporter.org; Max-Age=15552000; HttpOnly; Secure
Posts ¶
Post List ¶
A list contains meta(brief) information of the selected posts.
Get a list of postsGET/v2/posts{?category_id,tag_id,id,sort,offset,limit}
Example URI
- category_id
string
(optional) Example: 5edf118c3e631f0600198935Search for posts of the categories referenced by the category_id
- tag_id
string
(optional) Example: 5edf118c3e631f0600198935Search for posts with the tags referenced by the tag ids
- id
string
(optional) Example: 5edf118c3e631f0600198935Search for posts with the referenced ids
- sort
string
(optional) Default: -published_date Example: -published_datewhich field to sort by
Choices:
published_date
-published_date
updated_at
-updated_at
- offset
integer
(optional) Default: 0 Example: 0The number of posts to skip
- limit
integer
(optional) Default: 10 Example: 10The maximum number of posts to return
200
Headers
Content-Type: application/json
Body
{
"status": "success",
"data": {
"meta": {
"offset": 0,
"limit": 10,
"total": 100
},
"records": [
{
"id": "5edf118c3e631f0600198935",
"style": "article:v2:default",
"slug": "a-slug-of-the-post",
"leading_image_portrait": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"hero_image": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"og_image": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"og_description": "post description",
"title": "post title",
"subtitle": "post subtitle",
"categories": [
{
"id": "5edf118c3e631f0600198935",
"sort_order": 0,
"name": "文章類別"
}
],
"published_date": "2020-06-8T16:00:00Z",
"is_external": false,
"tags": [
{
"id": "5edf118c3e631f0600198935",
"name": "tag name"
}
],
"full": false
}
]
}
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string"
},
"data": {
"type": "object",
"properties": {
"meta": {
"type": "object",
"properties": {
"offset": {
"type": "number"
},
"limit": {
"type": "number"
},
"total": {
"type": "number"
}
},
"required": [
"offset",
"limit",
"total"
],
"additionalProperties": false
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"style": {
"type": "string"
},
"slug": {
"type": "string"
},
"leading_image_portrait": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"hero_image": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"og_image": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"og_description": {
"type": "string"
},
"title": {
"type": "string"
},
"subtitle": {
"type": "string"
},
"categories": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"sort_order": {
"type": "number"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"sort_order",
"name"
]
}
},
"published_date": {
"type": "string"
},
"is_external": {
"type": "boolean"
},
"tags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name"
]
}
},
"full": {
"type": "boolean"
}
},
"required": [
"id",
"style",
"slug",
"leading_image_portrait",
"hero_image",
"og_image",
"og_description",
"title",
"subtitle",
"categories",
"published_date",
"is_external",
"tags",
"full"
]
}
}
},
"required": [
"meta",
"records"
]
}
},
"required": [
"status"
]
}
500
Headers
Content-Type: application/json
Body
{
"status": "error",
"message": "Unexpected error."
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"status",
"message"
]
}
504
Headers
Content-Type: application/json
Body
{
"status": "error",
"message": "Query upstream server timeout."
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"status",
"message"
]
}
Post ¶
A post contains meta(brief) or full information of a post with the slug specified.
Get a single postGET/v2/posts/{slug}{?full}
Get a single post with the given slug
Example URI
- slug
string
(required) Example: a-slug-of-a-postPost slug
- full
string
(optional) Default: false Example: trueWhether to retrieve a post with full information
200
Headers
Content-Type: application/json
Body
{
"status": "success",
"data": {
"id": "5edf118c3e631f0600198935",
"style": "article:v2:default",
"slug": "a-slug-of-the-post",
"leading_image_portrait": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"hero_image": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"og_image": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"og_description": "post description",
"title": "post title",
"subtitle": "post subtitle",
"categories": [
{
"id": "5edf118c3e631f0600198935",
"sort_order": 0,
"name": "文章類別"
}
],
"published_date": "2020-06-8T16:00:00Z",
"is_external": false,
"tags": [
{
"id": "5edf118c3e631f0600198935",
"name": "tag name"
}
],
"full": false
}
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string"
},
"data": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"style": {
"type": "string"
},
"slug": {
"type": "string"
},
"leading_image_portrait": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"hero_image": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"og_image": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"og_description": {
"type": "string"
},
"title": {
"type": "string"
},
"subtitle": {
"type": "string"
},
"categories": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"sort_order": {
"type": "number"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"sort_order",
"name"
]
}
},
"published_date": {
"type": "string"
},
"is_external": {
"type": "boolean"
},
"tags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name"
]
}
},
"full": {
"type": "boolean"
}
},
"required": [
"id",
"style",
"slug",
"leading_image_portrait",
"hero_image",
"og_image",
"og_description",
"title",
"subtitle",
"categories",
"published_date",
"is_external",
"tags",
"full"
]
}
},
"required": [
"status",
"data"
]
}
404
Headers
Content-Type: application/json
Body
{
"status": "fail",
"data": {
"slug": "Cannot find the post from the slug"
}
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string"
},
"data": {
"type": "object",
"properties": {
"slug": {
"type": "string"
}
},
"required": [
"slug"
]
}
},
"required": [
"status",
"data"
]
}
500
Headers
Content-Type: application/json
Body
{
"status": "error",
"message": "Unexpected error."
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"status",
"message"
]
}
504
Headers
Content-Type: application/json
Body
{
"status": "error",
"message": "Query upstream server timeout."
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"status",
"message"
]
}
with full=true
200
Headers
Content-Type: application/json
Body
{
"status": "success",
"data": {
"id": "5edf118c3e631f0600198935",
"style": "article:v2:default",
"slug": "a-slug-of-the-post",
"leading_image_portrait": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"hero_image": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"og_image": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"og_description": "post description",
"title": "post title",
"subtitle": "post subtitle",
"categories": [
{
"id": "5edf118c3e631f0600198935",
"sort_order": 0,
"name": "文章類別"
}
],
"published_date": "2020-06-8T16:00:00Z",
"is_external": false,
"tags": [
{
"id": "5edf118c3e631f0600198935",
"name": "tag name"
}
],
"brief": {
"api_data": [
{
"alignment": "center",
"content": [
"context"
],
"id": "1234",
"styles": {},
"type": "unstyled"
}
]
},
"content": {
"api_data": [
{
"alignment": "center",
"content": [
"context"
],
"id": "1234",
"styles": {},
"type": "unstyled"
}
]
},
"copyright": "copyrighted",
"designers": [
{
"id": "5edf118c3e631f0600198935",
"job_title": "特約記者",
"name": "王大明"
}
],
"engineers": [
{
"id": "5edf118c3e631f0600198935",
"job_title": "特約記者",
"name": "王大明"
}
],
"extend_byline": "extended lines",
"leading_image_description": "description",
"og_title": "og title",
"photographers": [
{
"id": "5edf118c3e631f0600198935",
"job_title": "特約記者",
"name": "王大明"
}
],
"relateds": [
"5edf118c3e631f0600198935"
],
"topic": {
"title": "topic title",
"short_title": "topic short title",
"slug": "the-slug-of-the-topic",
"relateds": [
"5edf118c3e631f0600198935"
]
},
"updated_at": "2020-06-8T16:00:00Z",
"writers": [
{
"id": "5edf118c3e631f0600198935",
"job_title": "特約記者",
"name": "王大明"
}
],
"hero_image_size": "normal",
"full": true
}
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string"
},
"data": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"style": {
"type": "string"
},
"slug": {
"type": "string"
},
"leading_image_portrait": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"hero_image": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"og_image": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"og_description": {
"type": "string"
},
"title": {
"type": "string"
},
"subtitle": {
"type": "string"
},
"categories": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"sort_order": {
"type": "number"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"sort_order",
"name"
]
}
},
"published_date": {
"type": "string"
},
"is_external": {
"type": "boolean"
},
"tags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name"
]
}
},
"brief": {
"type": "object",
"properties": {
"api_data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"alignment": {
"type": "string"
},
"content": {
"type": "array"
},
"id": {
"type": "string"
},
"styles": {
"type": "object",
"properties": {}
},
"type": {
"type": "string"
}
},
"required": [
"alignment",
"content",
"id",
"styles",
"type"
]
}
}
}
},
"content": {
"type": "object",
"properties": {
"api_data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"alignment": {
"type": "string"
},
"content": {
"type": "array"
},
"id": {
"type": "string"
},
"styles": {
"type": "object",
"properties": {}
},
"type": {
"type": "string"
}
},
"required": [
"alignment",
"content",
"id",
"styles",
"type"
]
}
}
}
},
"copyright": {
"type": "string"
},
"designers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"job_title": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"job_title",
"name"
]
}
},
"engineers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"job_title": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"job_title",
"name"
]
}
},
"extend_byline": {
"type": "string"
},
"leading_image_description": {
"type": "string"
},
"og_title": {
"type": "string"
},
"photographers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"job_title": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"job_title",
"name"
]
}
},
"relateds": {
"type": "array",
"items": {
"type": "string"
}
},
"topic": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"short_title": {
"type": "string"
},
"slug": {
"type": "string"
},
"relateds": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"title",
"short_title",
"slug",
"relateds"
]
},
"updated_at": {
"type": "string"
},
"writers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"job_title": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"job_title",
"name"
]
}
},
"hero_image_size": {
"type": "string"
},
"full": {
"type": "boolean"
}
},
"required": [
"id",
"style",
"slug",
"leading_image_portrait",
"hero_image",
"og_image",
"og_description",
"title",
"subtitle",
"categories",
"published_date",
"is_external",
"tags",
"full",
"brief",
"content",
"copyright",
"designers",
"engineers",
"extend_byline",
"leading_image_description",
"og_title",
"photographers",
"relateds",
"topic",
"updated_at",
"writers",
"hero_image_size",
"full"
]
}
},
"required": [
"status",
"data"
]
}
Topics ¶
Topic List ¶
A list contains meta(brief) information of the selected topics.
Get a list of topicsGET/topics{?sort,offset,limit}
Example URI
- sort
string
(optional) Default: -published_date Example: -published_datewhich field to sort by
Choices:
published_date
-published_date
- offset
integer
(optional) Default: 0 Example: 0The number of posts to skip
- limit
integer
(optional) Default: 10 Example: 10The maximum number of posts to return
200
Headers
Content-Type: application/json
Body
{
"status": "success",
"data": {
"meta": {
"offset": 0,
"limit": 10,
"total": 100
},
"records": [
{
"id": "5edf118c3e631f0600198935",
"slug": "a-slug-of-the-topic",
"title": "topic title",
"short_title": "short title",
"published_date": "2020",
"og_description": "topic description",
"og_image": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"leading_image": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"leading_image_portrait": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"relateds": [
"5edf118c3e631f0600198935"
],
"full": false
}
]
}
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string"
},
"data": {
"type": "object",
"properties": {
"meta": {
"type": "object",
"properties": {
"offset": {
"type": "number"
},
"limit": {
"type": "number"
},
"total": {
"type": "number"
}
},
"required": [
"offset",
"limit",
"total"
],
"additionalProperties": false
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"slug": {
"type": "string"
},
"title": {
"type": "string"
},
"short_title": {
"type": "string"
},
"published_date": {
"type": "string",
"description": "06-8T16:00:00Z (required)"
},
"og_description": {
"type": "string"
},
"og_image": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"leading_image": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"leading_image_portrait": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"relateds": {
"type": "array",
"items": {
"type": "string"
}
},
"full": {
"type": "boolean"
}
},
"required": [
"id",
"slug",
"title",
"short_title",
"og_description",
"og_image",
"leading_image",
"leading_image_portrait",
"relateds",
"full"
]
}
}
},
"required": [
"meta",
"records"
]
}
},
"required": [
"status"
]
}
500
Headers
Content-Type: application/json
Body
{
"status": "error",
"message": "Unexpected error."
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"status",
"message"
]
}
504
Headers
Content-Type: application/json
Body
{
"status": "error",
"message": "Query upstream server timeout."
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"status",
"message"
]
}
Topic ¶
Contain meta(brief) or full information of a topic with the slug specified.
Get a single topicGET/v2/topics/{slug}{?full}
Get a single topic with the given slug
Example URI
- slug
string
(required) Example: a-slug-of-a-topicTopic slug
- full
string
(optional) Default: false Example: trueWhether to retrieve a topic with full information
200
Headers
Content-Type: application/json
Body
{
"status": "success",
"data": {
"id": "5edf118c3e631f0600198935",
"slug": "a-slug-of-the-topic",
"title": "topic title",
"short_title": "short title",
"published_date": "2020",
"og_description": "topic description",
"og_image": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"leading_image": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"leading_image_portrait": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"relateds": [
"5edf118c3e631f0600198935"
],
"full": false
}
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string"
},
"data": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"slug": {
"type": "string"
},
"title": {
"type": "string"
},
"short_title": {
"type": "string"
},
"published_date": {
"type": "string",
"description": "06-8T16:00:00Z (required)"
},
"og_description": {
"type": "string"
},
"og_image": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"leading_image": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"leading_image_portrait": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"relateds": {
"type": "array",
"items": {
"type": "string"
}
},
"full": {
"type": "boolean"
}
},
"required": [
"id",
"slug",
"title",
"short_title",
"og_description",
"og_image",
"leading_image",
"leading_image_portrait",
"relateds",
"full"
]
}
},
"required": [
"status",
"data"
]
}
404
Headers
Content-Type: application/json
Body
{
"status": "fail",
"data": {
"slug": "Cannot find the topic from the slug"
}
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string"
},
"data": {
"type": "object",
"properties": {
"slug": {
"type": "string"
}
},
"required": [
"slug"
]
}
},
"required": [
"status",
"data"
]
}
500
Headers
Content-Type: application/json
Body
{
"status": "error",
"message": "Unexpected error."
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"status",
"message"
]
}
504
Headers
Content-Type: application/json
Body
{
"status": "error",
"message": "Query upstream server timeout."
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"status",
"message"
]
}
with full=true
200
Headers
Content-Type: application/json
Body
{
"status": "success",
"data": {
"id": "5edf118c3e631f0600198935",
"slug": "a-slug-of-the-topic",
"title": "topic title",
"short_title": "short title",
"published_date": "2020",
"og_description": "topic description",
"og_image": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"leading_image": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"leading_image_portrait": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"relateds": [
"5edf118c3e631f0600198935"
],
"relateds_background": "in",
"relateds_format": "#5E5E41",
"title_position": "center",
"lead_video": {
"id": "5edf118c3e631f0600198935",
"title": "video title",
"filetype": "video/mp4",
"size": "65536",
"url": "http://video.url"
},
"headline": "topic headline",
"subtitle": "topic subtitle",
"description": {
"api_data": [
{
"alignment": "center",
"content": [
"context"
],
"id": "1234",
"styles": {},
"type": "unstyled"
}
]
},
"team_description": {
"api_data": [
{
"alignment": "center",
"content": [
"context"
],
"id": "1234",
"styles": {},
"type": "unstyled"
}
]
},
"og_title": "topic og title",
"full": true
}
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string"
},
"data": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"slug": {
"type": "string"
},
"title": {
"type": "string"
},
"short_title": {
"type": "string"
},
"published_date": {
"type": "string",
"description": "06-8T16:00:00Z (required)"
},
"og_description": {
"type": "string"
},
"og_image": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"leading_image": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"leading_image_portrait": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"relateds": {
"type": "array",
"items": {
"type": "string"
}
},
"relateds_background": {
"type": "string",
"description": "row"
},
"relateds_format": {
"type": "string"
},
"title_position": {
"type": "string"
},
"lead_video": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"title": {
"type": "string"
},
"filetype": {
"type": "string"
},
"size": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"id",
"title",
"filetype",
"size",
"url"
]
},
"headline": {
"type": "string"
},
"subtitle": {
"type": "string"
},
"description": {
"type": "object",
"properties": {
"api_data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"alignment": {
"type": "string"
},
"content": {
"type": "array"
},
"id": {
"type": "string"
},
"styles": {
"type": "object",
"properties": {}
},
"type": {
"type": "string"
}
},
"required": [
"alignment",
"content",
"id",
"styles",
"type"
]
}
}
}
},
"team_description": {
"type": "object",
"properties": {
"api_data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"alignment": {
"type": "string"
},
"content": {
"type": "array"
},
"id": {
"type": "string"
},
"styles": {
"type": "object",
"properties": {}
},
"type": {
"type": "string"
}
},
"required": [
"alignment",
"content",
"id",
"styles",
"type"
]
}
}
}
},
"og_title": {
"type": "string"
},
"full": {
"type": "boolean"
}
},
"required": [
"id",
"slug",
"title",
"short_title",
"og_description",
"og_image",
"leading_image",
"leading_image_portrait",
"relateds",
"full",
"lead_video",
"headline",
"subtitle",
"description",
"team_description",
"og_title",
"full"
]
}
},
"required": [
"status",
"data"
]
}
Index Page ¶
Index Page ¶
A map contains consists mutiple post groups classified into following sections.
-
LatestSection
-
EditorPicksSection
-
LatestTopicSection
-
ReviewsSection
-
TopicsSection
-
PhotoSection
-
InfographicSection
-
HumanRightsAndSociety
-
EnvironmentAndEducation
-
PoliticsAndEconomy
-
CultureAndArt
-
International
-
LivingAndMedicalCare
Get current index pageGET/v2/index_page
Example URI
200
Headers
Content-Type: application/json
Body
{
"status": "success",
"data": {
"latest_section": [
{
"id": "5edf118c3e631f0600198935",
"style": "article:v2:default",
"slug": "a-slug-of-the-post",
"leading_image_portrait": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"hero_image": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"og_image": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"og_description": "post description",
"title": "post title",
"subtitle": "post subtitle",
"categories": [
{
"id": "5edf118c3e631f0600198935",
"sort_order": 0,
"name": "文章類別"
}
],
"published_date": "2020-06-8T16:00:00Z",
"is_external": false,
"tags": [
{
"id": "5edf118c3e631f0600198935",
"name": "tag name"
}
],
"full": false
}
],
"editor_picks_section": [
{
"id": "5edf118c3e631f0600198935",
"style": "article:v2:default",
"slug": "a-slug-of-the-post",
"leading_image_portrait": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"hero_image": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"og_image": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"og_description": "post description",
"title": "post title",
"subtitle": "post subtitle",
"categories": [
{
"id": "5edf118c3e631f0600198935",
"sort_order": 0,
"name": "文章類別"
}
],
"published_date": "2020-06-8T16:00:00Z",
"is_external": false,
"tags": [
{
"id": "5edf118c3e631f0600198935",
"name": "tag name"
}
],
"full": false
}
],
"latest_topic_section": [
{
"id": "5edf118c3e631f0600198935",
"slug": "a-slug-of-the-topic",
"title": "topic title",
"short_title": "short title",
"published_date": "2020",
"og_description": "topic description",
"og_image": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"leading_image": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"leading_image_portrait": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"relateds": [
"5edf118c3e631f0600198935"
],
"full": false
}
],
"reviews_section": [
{
"id": "5edf118c3e631f0600198935",
"style": "article:v2:default",
"slug": "a-slug-of-the-post",
"leading_image_portrait": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"hero_image": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"og_image": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"og_description": "post description",
"title": "post title",
"subtitle": "post subtitle",
"categories": [
{
"id": "5edf118c3e631f0600198935",
"sort_order": 0,
"name": "文章類別"
}
],
"published_date": "2020-06-8T16:00:00Z",
"is_external": false,
"tags": [
{
"id": "5edf118c3e631f0600198935",
"name": "tag name"
}
],
"full": false
}
],
"topics_section": [
{
"id": "5edf118c3e631f0600198935",
"slug": "a-slug-of-the-topic",
"title": "topic title",
"short_title": "short title",
"published_date": "2020",
"og_description": "topic description",
"og_image": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"leading_image": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"leading_image_portrait": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"relateds": [
"5edf118c3e631f0600198935"
],
"full": false
}
],
"photos_section": [
{
"id": "5edf118c3e631f0600198935",
"style": "article:v2:default",
"slug": "a-slug-of-the-post",
"leading_image_portrait": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"hero_image": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"og_image": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"og_description": "post description",
"title": "post title",
"subtitle": "post subtitle",
"categories": [
{
"id": "5edf118c3e631f0600198935",
"sort_order": 0,
"name": "文章類別"
}
],
"published_date": "2020-06-8T16:00:00Z",
"is_external": false,
"tags": [
{
"id": "5edf118c3e631f0600198935",
"name": "tag name"
}
],
"full": false
}
],
"infographics_section": [
{
"id": "5edf118c3e631f0600198935",
"style": "article:v2:default",
"slug": "a-slug-of-the-post",
"leading_image_portrait": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"hero_image": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"og_image": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"og_description": "post description",
"title": "post title",
"subtitle": "post subtitle",
"categories": [
{
"id": "5edf118c3e631f0600198935",
"sort_order": 0,
"name": "文章類別"
}
],
"published_date": "2020-06-8T16:00:00Z",
"is_external": false,
"tags": [
{
"id": "5edf118c3e631f0600198935",
"name": "tag name"
}
],
"full": false
}
],
"human_rights_and_society": [
{
"id": "5edf118c3e631f0600198935",
"style": "article:v2:default",
"slug": "a-slug-of-the-post",
"leading_image_portrait": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"hero_image": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"og_image": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"og_description": "post description",
"title": "post title",
"subtitle": "post subtitle",
"categories": [
{
"id": "5edf118c3e631f0600198935",
"sort_order": 0,
"name": "文章類別"
}
],
"published_date": "2020-06-8T16:00:00Z",
"is_external": false,
"tags": [
{
"id": "5edf118c3e631f0600198935",
"name": "tag name"
}
],
"full": false
}
],
"environment_and_education": [
{
"id": "5edf118c3e631f0600198935",
"style": "article:v2:default",
"slug": "a-slug-of-the-post",
"leading_image_portrait": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"hero_image": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"og_image": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"og_description": "post description",
"title": "post title",
"subtitle": "post subtitle",
"categories": [
{
"id": "5edf118c3e631f0600198935",
"sort_order": 0,
"name": "文章類別"
}
],
"published_date": "2020-06-8T16:00:00Z",
"is_external": false,
"tags": [
{
"id": "5edf118c3e631f0600198935",
"name": "tag name"
}
],
"full": false
}
],
"politics_and_economy": [
{
"id": "5edf118c3e631f0600198935",
"style": "article:v2:default",
"slug": "a-slug-of-the-post",
"leading_image_portrait": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"hero_image": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"og_image": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"og_description": "post description",
"title": "post title",
"subtitle": "post subtitle",
"categories": [
{
"id": "5edf118c3e631f0600198935",
"sort_order": 0,
"name": "文章類別"
}
],
"published_date": "2020-06-8T16:00:00Z",
"is_external": false,
"tags": [
{
"id": "5edf118c3e631f0600198935",
"name": "tag name"
}
],
"full": false
}
],
"culture_and_art": [
{
"id": "5edf118c3e631f0600198935",
"style": "article:v2:default",
"slug": "a-slug-of-the-post",
"leading_image_portrait": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"hero_image": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"og_image": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"og_description": "post description",
"title": "post title",
"subtitle": "post subtitle",
"categories": [
{
"id": "5edf118c3e631f0600198935",
"sort_order": 0,
"name": "文章類別"
}
],
"published_date": "2020-06-8T16:00:00Z",
"is_external": false,
"tags": [
{
"id": "5edf118c3e631f0600198935",
"name": "tag name"
}
],
"full": false
}
],
"international": [
{
"id": "5edf118c3e631f0600198935",
"style": "article:v2:default",
"slug": "a-slug-of-the-post",
"leading_image_portrait": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"hero_image": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"og_image": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"og_description": "post description",
"title": "post title",
"subtitle": "post subtitle",
"categories": [
{
"id": "5edf118c3e631f0600198935",
"sort_order": 0,
"name": "文章類別"
}
],
"published_date": "2020-06-8T16:00:00Z",
"is_external": false,
"tags": [
{
"id": "5edf118c3e631f0600198935",
"name": "tag name"
}
],
"full": false
}
],
"living_and_medical_care": [
{
"id": "5edf118c3e631f0600198935",
"style": "article:v2:default",
"slug": "a-slug-of-the-post",
"leading_image_portrait": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"hero_image": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"og_image": {
"id": "5edf118c3e631f0600198935",
"description": "image description",
"filetype": "image/jpeg",
"resized_targets": {
"mobile": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tiny": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"desktop": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"tablet": {
"height": 600,
"width": 800,
"url": "http://image.link"
},
"w400": {
"height": 600,
"width": 800,
"url": "http://image.link"
}
}
},
"og_description": "post description",
"title": "post title",
"subtitle": "post subtitle",
"categories": [
{
"id": "5edf118c3e631f0600198935",
"sort_order": 0,
"name": "文章類別"
}
],
"published_date": "2020-06-8T16:00:00Z",
"is_external": false,
"tags": [
{
"id": "5edf118c3e631f0600198935",
"name": "tag name"
}
],
"full": false
}
]
}
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string"
},
"data": {
"type": "object",
"properties": {
"latest_section": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"style": {
"type": "string"
},
"slug": {
"type": "string"
},
"leading_image_portrait": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"hero_image": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"og_image": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"og_description": {
"type": "string"
},
"title": {
"type": "string"
},
"subtitle": {
"type": "string"
},
"categories": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"sort_order": {
"type": "number"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"sort_order",
"name"
]
}
},
"published_date": {
"type": "string"
},
"is_external": {
"type": "boolean"
},
"tags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name"
]
}
},
"full": {
"type": "boolean"
}
},
"required": [
"id",
"style",
"slug",
"leading_image_portrait",
"hero_image",
"og_image",
"og_description",
"title",
"subtitle",
"categories",
"published_date",
"is_external",
"tags",
"full"
]
},
"description": "latest_section must contain exactly the latest 6 posts sorted by published_date"
},
"editor_picks_section": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"style": {
"type": "string"
},
"slug": {
"type": "string"
},
"leading_image_portrait": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"hero_image": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"og_image": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"og_description": {
"type": "string"
},
"title": {
"type": "string"
},
"subtitle": {
"type": "string"
},
"categories": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"sort_order": {
"type": "number"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"sort_order",
"name"
]
}
},
"published_date": {
"type": "string"
},
"is_external": {
"type": "boolean"
},
"tags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name"
]
}
},
"full": {
"type": "boolean"
}
},
"required": [
"id",
"style",
"slug",
"leading_image_portrait",
"hero_image",
"og_image",
"og_description",
"title",
"subtitle",
"categories",
"published_date",
"is_external",
"tags",
"full"
]
},
"description": "editor_picks_section must contain exactly latest 6 posts sorted by updated_at"
},
"latest_topic_section": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"slug": {
"type": "string"
},
"title": {
"type": "string"
},
"short_title": {
"type": "string"
},
"published_date": {
"type": "string",
"description": "06-8T16:00:00Z (required)"
},
"og_description": {
"type": "string"
},
"og_image": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"leading_image": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"leading_image_portrait": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"relateds": {
"type": "array",
"items": {
"type": "string"
}
},
"full": {
"type": "boolean"
}
},
"required": [
"id",
"slug",
"title",
"short_title",
"og_description",
"og_image",
"leading_image",
"leading_image_portrait",
"relateds",
"full"
]
},
"description": "latest_topic_section must contain exactly latest 1 topic sorted by published_date"
},
"reviews_section": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"style": {
"type": "string"
},
"slug": {
"type": "string"
},
"leading_image_portrait": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"hero_image": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"og_image": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"og_description": {
"type": "string"
},
"title": {
"type": "string"
},
"subtitle": {
"type": "string"
},
"categories": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"sort_order": {
"type": "number"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"sort_order",
"name"
]
}
},
"published_date": {
"type": "string"
},
"is_external": {
"type": "boolean"
},
"tags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name"
]
}
},
"full": {
"type": "boolean"
}
},
"required": [
"id",
"style",
"slug",
"leading_image_portrait",
"hero_image",
"og_image",
"og_description",
"title",
"subtitle",
"categories",
"published_date",
"is_external",
"tags",
"full"
]
},
"description": "reviews_section must contain exactly 4 posts sorted by published_date"
},
"topics_section": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"slug": {
"type": "string"
},
"title": {
"type": "string"
},
"short_title": {
"type": "string"
},
"published_date": {
"type": "string",
"description": "06-8T16:00:00Z (required)"
},
"og_description": {
"type": "string"
},
"og_image": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"leading_image": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"leading_image_portrait": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"relateds": {
"type": "array",
"items": {
"type": "string"
}
},
"full": {
"type": "boolean"
}
},
"required": [
"id",
"slug",
"title",
"short_title",
"og_description",
"og_image",
"leading_image",
"leading_image_portrait",
"relateds",
"full"
]
},
"description": "topics_section must contain exactly latest 4 topics (excluded latest one) sorted by published_date"
},
"photos_section": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"style": {
"type": "string"
},
"slug": {
"type": "string"
},
"leading_image_portrait": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"hero_image": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"og_image": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"og_description": {
"type": "string"
},
"title": {
"type": "string"
},
"subtitle": {
"type": "string"
},
"categories": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"sort_order": {
"type": "number"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"sort_order",
"name"
]
}
},
"published_date": {
"type": "string"
},
"is_external": {
"type": "boolean"
},
"tags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name"
]
}
},
"full": {
"type": "boolean"
}
},
"required": [
"id",
"style",
"slug",
"leading_image_portrait",
"hero_image",
"og_image",
"og_description",
"title",
"subtitle",
"categories",
"published_date",
"is_external",
"tags",
"full"
]
},
"description": "photos_section must contain exactly 4 photo posts sorted by published_date"
},
"infographics_section": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"style": {
"type": "string"
},
"slug": {
"type": "string"
},
"leading_image_portrait": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"hero_image": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"og_image": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"og_description": {
"type": "string"
},
"title": {
"type": "string"
},
"subtitle": {
"type": "string"
},
"categories": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"sort_order": {
"type": "number"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"sort_order",
"name"
]
}
},
"published_date": {
"type": "string"
},
"is_external": {
"type": "boolean"
},
"tags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name"
]
}
},
"full": {
"type": "boolean"
}
},
"required": [
"id",
"style",
"slug",
"leading_image_portrait",
"hero_image",
"og_image",
"og_description",
"title",
"subtitle",
"categories",
"published_date",
"is_external",
"tags",
"full"
]
},
"description": "infographics_section must contain exactly 6 infographic posts sorted by published_date"
},
"human_rights_and_society": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"style": {
"type": "string"
},
"slug": {
"type": "string"
},
"leading_image_portrait": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"hero_image": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"og_image": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"og_description": {
"type": "string"
},
"title": {
"type": "string"
},
"subtitle": {
"type": "string"
},
"categories": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"sort_order": {
"type": "number"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"sort_order",
"name"
]
}
},
"published_date": {
"type": "string"
},
"is_external": {
"type": "boolean"
},
"tags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name"
]
}
},
"full": {
"type": "boolean"
}
},
"required": [
"id",
"style",
"slug",
"leading_image_portrait",
"hero_image",
"og_image",
"og_description",
"title",
"subtitle",
"categories",
"published_date",
"is_external",
"tags",
"full"
]
},
"description": "human_rights_and_society must contain the latest post in human rights and society category sorted by published_date"
},
"environment_and_education": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"style": {
"type": "string"
},
"slug": {
"type": "string"
},
"leading_image_portrait": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"hero_image": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"og_image": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"og_description": {
"type": "string"
},
"title": {
"type": "string"
},
"subtitle": {
"type": "string"
},
"categories": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"sort_order": {
"type": "number"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"sort_order",
"name"
]
}
},
"published_date": {
"type": "string"
},
"is_external": {
"type": "boolean"
},
"tags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name"
]
}
},
"full": {
"type": "boolean"
}
},
"required": [
"id",
"style",
"slug",
"leading_image_portrait",
"hero_image",
"og_image",
"og_description",
"title",
"subtitle",
"categories",
"published_date",
"is_external",
"tags",
"full"
]
},
"description": "environment_and_education must contain the latest post in environment and education category sorted by published_date"
},
"politics_and_economy": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"style": {
"type": "string"
},
"slug": {
"type": "string"
},
"leading_image_portrait": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"hero_image": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"og_image": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"og_description": {
"type": "string"
},
"title": {
"type": "string"
},
"subtitle": {
"type": "string"
},
"categories": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"sort_order": {
"type": "number"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"sort_order",
"name"
]
}
},
"published_date": {
"type": "string"
},
"is_external": {
"type": "boolean"
},
"tags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name"
]
}
},
"full": {
"type": "boolean"
}
},
"required": [
"id",
"style",
"slug",
"leading_image_portrait",
"hero_image",
"og_image",
"og_description",
"title",
"subtitle",
"categories",
"published_date",
"is_external",
"tags",
"full"
]
},
"description": "politics_and_economy must contain the latest post in politics and economy category sorted by published_date"
},
"culture_and_art": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"style": {
"type": "string"
},
"slug": {
"type": "string"
},
"leading_image_portrait": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"hero_image": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"og_image": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"og_description": {
"type": "string"
},
"title": {
"type": "string"
},
"subtitle": {
"type": "string"
},
"categories": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"sort_order": {
"type": "number"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"sort_order",
"name"
]
}
},
"published_date": {
"type": "string"
},
"is_external": {
"type": "boolean"
},
"tags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name"
]
}
},
"full": {
"type": "boolean"
}
},
"required": [
"id",
"style",
"slug",
"leading_image_portrait",
"hero_image",
"og_image",
"og_description",
"title",
"subtitle",
"categories",
"published_date",
"is_external",
"tags",
"full"
]
},
"description": "culture_and_art must contain the latest post in culture and art category sorted by published_date"
},
"international": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"style": {
"type": "string"
},
"slug": {
"type": "string"
},
"leading_image_portrait": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"hero_image": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"og_image": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"og_description": {
"type": "string"
},
"title": {
"type": "string"
},
"subtitle": {
"type": "string"
},
"categories": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"sort_order": {
"type": "number"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"sort_order",
"name"
]
}
},
"published_date": {
"type": "string"
},
"is_external": {
"type": "boolean"
},
"tags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name"
]
}
},
"full": {
"type": "boolean"
}
},
"required": [
"id",
"style",
"slug",
"leading_image_portrait",
"hero_image",
"og_image",
"og_description",
"title",
"subtitle",
"categories",
"published_date",
"is_external",
"tags",
"full"
]
},
"description": "international must contain the latest post in international category sorted by published_date"
},
"living_and_medical_care": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"style": {
"type": "string"
},
"slug": {
"type": "string"
},
"leading_image_portrait": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"hero_image": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"og_image": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"filetype": {
"type": "string"
},
"resized_targets": {
"type": "object",
"properties": {
"mobile": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tiny": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"desktop": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"tablet": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
},
"w400": {
"type": "object",
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"url": {
"type": "string"
}
},
"required": [
"height",
"width",
"url"
]
}
},
"required": [
"mobile",
"tiny",
"desktop",
"tablet",
"w400"
]
}
},
"required": [
"id",
"description",
"filetype",
"resized_targets"
]
},
"og_description": {
"type": "string"
},
"title": {
"type": "string"
},
"subtitle": {
"type": "string"
},
"categories": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"sort_order": {
"type": "number"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"sort_order",
"name"
]
}
},
"published_date": {
"type": "string"
},
"is_external": {
"type": "boolean"
},
"tags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name"
]
}
},
"full": {
"type": "boolean"
}
},
"required": [
"id",
"style",
"slug",
"leading_image_portrait",
"hero_image",
"og_image",
"og_description",
"title",
"subtitle",
"categories",
"published_date",
"is_external",
"tags",
"full"
]
},
"description": "living_and_medical_care must contain the latest post in living and medical care categroy sorted by published_date"
}
}
}
},
"required": [
"status",
"data"
]
}
204
500
Headers
Content-Type: application/json
Body
{
"status": "error",
"message": "Unexpected error."
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"status",
"message"
]
}
504
Headers
Content-Type: application/json
Body
{
"status": "error",
"message": "Query upstream server timeout."
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"status",
"message"
]
}