contentful-api

Hướng dẫn toàn diện về Contentful REST API. Bao gồm Content Management API (CMA) để tạo/cập nhật nội dung, Content Delivery API (CDA) để lấy nội dung đã xuất bản…

npx skills add https://github.com/contentful/skills --skill contentful-api

Contentful REST API Guide

Language-agnostic guide for Contentful APIs using HTTP/curl.

Shared References

  • Authentication — Token types, auth headers, API base URLs (US/EU)
  • HTTP Conventions — Version locking, rate limits, pagination, errors, locale structure

Content Management API (CMA)

Read/write API for managing content, content types, assets, and environments.

Start here: references/content-management/overview.md

  • entries.md — CRUD, publish/unpublish, versioning, query parameters
  • content-types.md — Define/update content models, field types, validations
  • assets.md — Upload, process, publish media files
  • environments.md — Create, clone, manage environments and aliases

Content Delivery API (CDA)

Read-only API for fetching published content.

Start here: references/content-delivery/overview.md

Content Preview API

Draft + published content via same CDA endpoints, different host/token.

Reference: references/content-preview/overview.md

Images API

On-the-fly image transformations via URL parameters. No authentication needed.

Reference: references/images/overview.md

GraphQL API

Query content via GraphQL with CDA tokens.

Reference: references/graphql/overview.md

Quick Reference

# CMA: Create a draft entry
curl -X POST https://api.contentful.com/spaces/{space_id}/environments/{env_id}/entries \
  -H "Authorization: Bearer {cma_token}" \
  -H "Content-Type: application/vnd.contentful.management.v1+json" \
  -H "X-Contentful-Content-Type: blogPost" \
  -d '{"fields":{"title":{"en-US":"Hello"}}}'
# Then publish: PUT .../entries/{id}/published with X-Contentful-Version header

# CDA: Fetch entries
curl "https://cdn.contentful.com/spaces/{space_id}/environments/{env_id}/entries?content_type=blogPost" \
  -H "Authorization: Bearer {cda_token}"

Thêm skills từ contentful

contentful-custom-app-enhancement
contentful
Cải thiện, gỡ lỗi và mở rộng một ứng dụng tùy chỉnh của Contentful App Framework trong kho lưu trữ riêng của khách hàng. Sử dụng khi người dùng cung cấp báo cáo lỗi, tính năng…
official
contentful-custom-app-from-scratch
contentful
Thiết kế, tạo khung, xây dựng và xác thực một ứng dụng tùy chỉnh mới của Contentful App Framework cho kho lưu trữ hoặc không gian làm việc riêng của khách hàng. Sử dụng khi người dùng muốn tạo một…
official
contentful-help
contentful
Chẩn đoán, cấu hình và tra cứu các chủ đề Contentful. Từ khóa kích hoạt: contentful help, contentful doctor, contentful setup
official
game-jam
contentful
Một kỹ năng tạo game có hướng dẫn, giúp bạn thiết kế, lên kế hoạch và xây dựng game Tetris trên trình duyệt. Minh họa tất cả các nguyên mẫu SDK: askUser,…
official
get-to-know-you
contentful
Một cuộc phỏng vấn vui nhộn để tìm hiểu người dùng và tạo ra một thẻ hồ sơ cá nhân. Sử dụng khi người dùng muốn giới thiệu bản thân hoặc khi bạn muốn phá vỡ…
official
contentful-guide
contentful
Giải thích các khái niệm cốt lõi của Contentful và hướng người dùng đến kỹ năng triển khai hoặc tài liệu phù hợp. Sử dụng khi người dùng hỏi các câu hỏi khái niệm, cần thuật ngữ…
official
contentful-migration
contentful
Viết và chạy các tập lệnh di chuyển mô hình nội dung Contentful bằng thư viện contentful-migration và Contentful CLI. Bao gồm việc tạo, chỉnh sửa và xóa…
official
contentful-nextjs
contentful
Thêm và cấu hình Contentful trong một dự án Next.js hiện có. Bao gồm cài đặt SDK JavaScript, cấu hình biến môi trường, tạo môi trường production và…
official