·¬ÇÑÉçÇø

Brightspot CMS Developer Guide
Brightspot CMS Developer Guide
Developer guide
GraphQL API
Content Management API

Custom Content Management API development


Overview of custom CMA development
For stable production functionality, it typically makes more sense to build a custom Content Management endpoint via code, rather than entirely through editorial configuration. An endpoint class can ensure that a fixed set of APIs are exposed with configuration that should not change between different environments.

Implementing custom CMAs
Create a new Java class extending ContentManagementApiEndpoint.Implement required methods:

  • getPathSuffix—appended to /graphql/management/ to create the path where the API endpoint is available.
  • getEntryFields—objects wrapping Dari record types used to generate the schema and expose APIs.

Example:

public class FooContentManagementApiEndpoint extends ContentManagementApiEndpoint {

    @Override
    protected String getPathSuffix() {
        return "foo"; // API endpoint is available at path '/graphql/management/foo'
    }

    @Override
    public List<ContentManagementEntryPointField> getEntryFields() {
        return Arrays.asList(
               new ContentManagementEntryPointField(Foo.class, true),
               new ContentManagementEntryPointField(Bar.class, true));
    }
}

Previous Topic
Uploading files in Brightspot Content Management API
Next Topic
Content Delivery API permissions
Was this topic helpful?
Thanks for your feedback.
Our robust, flexible Design System provides hundreds of pre-built components you can use to build the presentation layer of your dreams.

•
•
•
Brightspot is packaged with content types that get you up and running in a matter of days, including assets, modules and landing pages.

• Content types
• Modules
• Landing pages
Everything you need to know when creating, managing, and administering content within Brightspot CMS.

• Dashboards
• Publishing
• Workflows
• Admin configurations
A guide for installing, supporting, extending, modifying and administering code on the Brightspot platform.

• Field types
• Content modeling
• Rich-text elements
• Images
A guide to configuring Brightspot's library of integrations, including pre-built options and developer-configured extensions.

• Google Analytics
• Shopify
• Apple News