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: ability to create modular pages #12

Open
Regaez opened this issue Aug 5, 2019 · 1 comment
Open

feat: ability to create modular pages #12

Regaez opened this issue Aug 5, 2019 · 1 comment
Labels

Comments

@Regaez
Copy link
Owner

Regaez commented Aug 5, 2019

Need to figure out the best way to get/create/modify a modular page. Currently, the /pages endpoint only really supports non-modular...

@Regaez Regaez changed the title How to create modular pages? feat: ability to create modular pages Aug 7, 2019
@Regaez Regaez added the feature label Aug 7, 2019
@Regaez
Copy link
Owner Author

Regaez commented Mar 11, 2020

So, you can currently edit modular page content by querying for the child routes with a _ prefix, e.g. /modular-page/_module-one or /modular-page/_module-two.

However, would it be nicer to support editing modular content for parent/multiple child modules in one request? Maybe something like:

POST /api/pages/modular-page

{
  "route": "/modular-page",
  "header": {
    "title": "A modular page"
  },
  "modules": {
    "module-one": {
      "header": {},
      "content": "some content"
    }
  }
}

@Regaez Regaez assigned Regaez and unassigned Regaez Mar 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant