Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(content-releases): new create many release actions endpoint #19778

Merged
merged 3 commits into from
Mar 14, 2024

Conversation

Feranchz
Copy link
Contributor

What does it do?

Add a new endpoint & controller to add multiple entries to a release. This endpoint should not fail if there is one entry already on the release.

How to test it?

You need to run the project with a valid EE license and you can try to make different calls to the POST /content-releases/:releaseId/actions/bulk endpoint.

To know the form of the request to do please check the type associated:

/**
 * POST /content-releases/:releaseId/actions/bulk - Create multiple release actions
 */
export declare namespace CreateManyReleaseActions {
  export interface Request {
    params: {
      releaseId: Release['id'];
    };
    body: Array<{
      type: ReleaseAction['type'];
      entry: {
        id: ReleaseActionEntry['id'];
        locale?: ReleaseActionEntry['locale'];
        contentType: Common.UID.ContentType;
      };
    }>;
  }

  export interface Response {
    data: Array<ReleaseAction>;
    meta: {
      totalEntries: number;
      entriesAlreadyInRelease: number;
    };
    error?: errors.ApplicationError | errors.ValidationError | errors.NotFoundError;
  }
}

Copy link

vercel bot commented Mar 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
contributor-docs ❌ Failed (Inspect) Mar 14, 2024 3:48pm

Copy link
Contributor

@Marc-Roig Marc-Roig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor comments, looks good to me! 🚀

@Feranchz Feranchz merged commit e6eaa3d into develop Mar 14, 2024
143 of 144 checks passed
@Feranchz Feranchz deleted the feat/create-many-release-actions branch March 14, 2024 16:36
@echoes-hq echoes-hq bot added the echoes/type: feature Effort to deliver new features, significant feature changes and new functionality label Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
echoes/type: feature Effort to deliver new features, significant feature changes and new functionality pr: feature This PR adds a new feature source: core:content-releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants