Skip to content

Server should support more REST-like paths #18

@aravindet

Description

@aravindet

This is a nice-to-have for 1.0.

As a prerequisite, we should add a soft convention for naming indexes, e.g. as '$<index_name>`, then we can do:

  • /posts?by=time&first=10&fields=slug,title,at,authors(first:1,name,avatar) should become:

    {
      'posts$time': [ { first: 10 }, {
        slug: 1, title: 1, at: 1,
        authors: [ { first: 1}, {
          name: 1, avatar: 1
        } ]
      } ]
    }
  • GET /posts/123?fields=slug,title,at,author(name,avatar) should become:

    {
      'posts': { 123: {
        slug: 1, title: 1, at: 1,
        author: { name: 1, avatar: 1 }
      } }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions