CMS

<back to all web services

GetContents

The following routes are available for this service:
GET/content/list
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class Content:
    content_i_d: Optional[int] = None
    c_type: Optional[int] = None
    fk_taal_i_d: Optional[int] = None
    c_naam: Optional[str] = None
    c_pagina_titel: Optional[str] = None
    c_s_e_o_omschrijving: Optional[str] = None
    c_s_e_o_u_r_l: Optional[str] = None
    fk_s_e_o_foto_i_d: Optional[int] = None
    c_focus_term: Optional[str] = None
    c_titel: Optional[str] = None
    c_tekst: Optional[str] = None
    c_intro: Optional[str] = None
    fk_thumbnail_i_d: Optional[int] = None
    c_order: Optional[int] = None
    laatste_update: Optional[datetime.datetime] = None
    laatste_update_door: Optional[str] = None
    c_header_foto: Optional[int] = None
    c_header_tekst: Optional[str] = None
    c_c2_a_tekst: Optional[str] = None
    c_c2_a_tekst_button_link: Optional[str] = None
    c_c2_a_tekst_button_tekst: Optional[str] = None
    c_intro_overzicht: Optional[str] = None
    c_intro_over_ons: Optional[str] = None
    c_intro_kort: Optional[str] = None
    c_datum: Optional[datetime.datetime] = None
    c_auteur: Optional[str] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class GetContentsResponse:
    results: Optional[List[Content]] = None
    response_status: Optional[ResponseStatus] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class GetContents:
    pass

Python GetContents DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /content/list HTTP/1.1 
Host: cms.exitus-ict.nl 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	results: 
	[
		{
			contentID: 0,
			cType: 0,
			fkTaalID: 0,
			cNaam: String,
			cPaginaTitel: String,
			cSEOOmschrijving: String,
			cSEOURL: String,
			fkSEOFotoID: 0,
			cFocusTerm: String,
			cTitel: String,
			cTekst: String,
			cIntro: String,
			fkThumbnailID: 0,
			cOrder: 0,
			laatsteUpdate: 0001-01-01,
			laatsteUpdateDoor: String,
			cHeaderFoto: 0,
			cHeaderTekst: String,
			cC2ATekst: String,
			cC2ATekstButtonLink: String,
			cC2ATekstButtonTekst: String,
			cIntroOverzicht: String,
			cIntroOverOns: String,
			cIntroKort: String,
			cDatum: 0001-01-01,
			cAuteur: String
		}
	],
	responseStatus: 
	{
		errorCode: String,
		message: String,
		stackTrace: String,
		errors: 
		[
			{
				errorCode: String,
				fieldName: String,
				message: String,
				meta: 
				{
					String: String
				}
			}
		],
		meta: 
		{
			String: String
		}
	}
}