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

[DYNAMODB] - Create a content type #522

Open
angeli-mercedes opened this issue Aug 24, 2023 · 1 comment
Open

[DYNAMODB] - Create a content type #522

angeli-mercedes opened this issue Aug 24, 2023 · 1 comment

Comments

@angeli-mercedes
Copy link
Collaborator

angeli-mercedes commented Aug 24, 2023

  • This API will creates a content type
  • api endpoint will be: api/[organization_slug]/content_types

Note:

  • Method: POST
  • Payload: id, name, slug, order, type, variant, icon
@angeli-mercedes
Copy link
Collaborator Author

Input fields:

  • Display Name: Ditter Blogs
  • API ID(slug): ditter-blogs
  • Variant: collection

PK : getOrganizationSlug() // organization#myrza
SK: content_type#[slug] // content_type#ditter-blogs

icon: null
id: uuid() // generate UUID
name: Ditter Blogs // // from input field
order: 0 // temporarily hardcoded
slug: ditter-blogs // from input field
type: content_type // hardcoded
variant: collection // from input field

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant