Headless-Server
31. März 2022 / Stephan Post
CMCC Headless Server
build
cd $CM10/apps/headless-server
mvn clean install -Pwith-docker -DskipTests
start from cmd-line
cd $CM10/apps/headless-server/spring-boot/headless-server-app
mvn spring-boot:run
port forward contentserver
from http://localhost:40180/ior to k8s
resolve ports from content-management-server
# check ports
kubectl get services -n cms-dev
kubectl get pod content-management-server-0 -n cms-dev --template='\n'
# forwards
kubectl port-forward -n cms-dev content-management-server-0 40180:8080
kubectl port-forward -n cms-dev content-management-server-0 8083:8083
local headless-server address
http://localhost:41180/
http://localhost:41180/swagger-ui.html
get a preview URL
curl -X GET "http://localhost:41180/previewurl?contentType=CMArticle&id=4509728" -H "accept: */*"
get content of article
id: 4509728
path: /Sites/Development/Germany/German/Content/Homepage/SPO-Playground/Headless-Server/Article
Content Type: Article
http://localhost:41180/caas/v1/article/4509728
resolve the Name of a ContentType
path: /Sites/Development/Germany/German/Content/Homepage/SPO-Playground/Headless-Server/Blog Article
id: 4509732
Content Type: Blog Article
http://localhost:41180/caas/v1/content/CTBlogArticle/4509732
DRAFT