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

Post APIs #108

Open
zelal-dev opened this issue Dec 4, 2024 · 0 comments
Open

Post APIs #108

zelal-dev opened this issue Dec 4, 2024 · 0 comments
Assignees
Milestone

Comments

@zelal-dev
Copy link
Contributor

API Name: Posts
Version: 1.0.0
Category: API
Type: Backend


Attributes

{
  "kind": "collectionType",
  "collectionName": "posts",
  "info": {
    "singularName": "post",
    "pluralName": "posts",
    "displayName": "Post",
    "description": ""
  },
  "options": {
    "draftAndPublish": true
  },
  "pluginOptions": {},
  "attributes": {
    "title": {
      "type": "string"
    },
    "slug": {
      "type": "uid"
    },
    "featuredImage": {
      "type": "media",
      "multiple": false,
      "required": false,
      "allowedTypes": ["images", "files", "videos", "audios"]
    },
    "gallery": {
      "type": "media",
      "multiple": true,
      "required": false,
      "allowedTypes": ["images", "files", "videos", "audios"]
    },
    "excerpt": {
      "type": "text"
    },
    "seo": {
      "type": "component",
      "repeatable": false,
      "component": "shared.seo"
    },
    "description": {
      "type": "blocks",
      "required": true
    },
    "user": {
      "type": "relation",
      "relation": "oneToOne",
      "target": "plugin::users-permissions.user"
    },
    "short_description": {
      "type": "text",
      "required": true
    },
    "post_categories": {
      "type": "relation",
      "relation": "manyToMany",
      "target": "plugin::padma-backend.category",
      "mappedBy": "posts"
    }
  }
}
@zelal-dev zelal-dev self-assigned this Dec 4, 2024
@zelal-dev zelal-dev added this to the 1.0.0 milestone Dec 4, 2024
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