-
Notifications
You must be signed in to change notification settings - Fork 0
Developer Documentation
Nodify is a headless CMS designed for developers. It separates content management from the front-end, offering complete flexibility via RESTful APIs. This document serves as a technical reference for interacting with the Nodify API and creating dynamic pages with templates.
git clone https://github.com/AZIRARM/nodify.git
cd nodify
docker compose up -dContent in Nodify is organized into nodes. They can contain text, HTML, JSON, images, or files, and can be hierarchical.
POST /v0/nodes
Content-Type: application/json
{
"name": "blog",
"language": "en"
}POST /v0/contents
Content-Type: application/json
{
"nodeCode": "{your_node_code}",
"type": "text",
"name": "article-1",
"content": "<h1>Welcome to my first article</h1>",
"slug": "welcome-to-my-first-article"
}POST /v0/datas
Content-Type: application/json
{
"key": "user_settings",
"value": { "theme": "dark", "notifications": true }
}- Full envelope (default):
GET /v0/content/code/{your_content_code}- Raw content only:
GET /v0/content/code/{your_content_code}?payloadOnly=truePATCH /v0/content-clicks/contentCode/{your_content_code}POST /v0/feedbacks
Content-Type: application/json
{
"contentCode": "article_123",
"author": "[email protected]",
"rating": 5,
"comment": "Great article!"
}$with(jquery3.7.1)
<p>This content uses the jQuery plugin.</p>Templates allow you to build dynamic pages by combining independent content nodes.
Example structure:
-
html-1: Header (global template) -
html-2: Footer -
css-1: CSS -
html-3: Body content -
JS-1: JavaScript
Assembling the page:
<html>
<head>
<style>$content(css-1)</style>
</head>
<body>
$content(html-1) <!-- Header -->
$content(html-3) <!-- Body -->
$content(html-2) <!-- Footer -->
<script>$content(JS-1)</script>
</body>
</html>Nesting Templates:
<header>
<h1>$content(site-title)</h1>
<nav>$content(category-list)</nav>
</header>Advantages: reusability, maintainability, flexibility, modularity.
#Nodify #HeadlessCMS #DeveloperTools #APIDriven #WebDevelopment #DynamicPages #WebDesign #Templates #ContentManagement #RESTAPI #FrontendDevelopment #BackendDevelopment #Coding #SoftwareDevelopment #TechStack