Skip to content

Expose Basic CRUD REST Endpoints (HubCRUD) #663

@clifordpereira

Description

@clifordpereira

Hi Daniel and NuxtHub team,

First of all, I really appreciate the Hub Database feature — it makes prototyping with NuxtHub smooth and developer-friendly.

I was thinking: wouldn’t it be valuable if Hub Database could expose basic REST endpoints like these, so developers can instantly build frontends without worrying about backend CRUD logic?

Method	Endpoint	        Description
GET 	/api/:resource	    Fetch all records of a resource
GET  	/api/:resource/:id	Fetch a single record by ID
POST    /api/:resource	    Create a new record
PUT  	/api/:resource/:id	Update an existing record
DELETE	/api/:resource/:id	Delete a record by ID

With something like this, developers could plug in a frontend directly — for example:

Nuxt CRUD Frontend (open source)

Video demo showcasing the flow

This way, NuxtHub could integrate a lightweight Strapi alternative, say HubCRUD, just like they have HubDatabase, HubKV, HubBlob, etc. A small feature addition, but one that could really empower experimentation and lower the entry barrier for many developers.

Would love to hear your thoughts — and happy to contribute or collaborate if this aligns with the NuxtHub roadmap.

Thanks,
Cliford Pereira

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions