Auto-generated REST APIs

Frameworks like Sails.js provide auto-generated REST APIs, among other useful features. Could Wappler integrate Sails.js or other functionality to accomplish similar needs?

I’m not sure if I understand what would be different. Server Connect API files are REST APIs. You can allow people to use them just like any other REST API, returning a JSON of data you choose to output - no coding required and highly configurable to your specific needs.

3 Likes

Do you have to set them up for every table or are they auto-generated when you create the table?

Can you provide a use case example?

I create a User table and the system immediately creates the following.

  • GET /users
  • GET /users/:id
  • POST /users
  • PUT /users/:id
  • DELETE /users/:id
2 Likes

https://sailsjs.com/documentation/concepts/blueprints

More details on the routes it creates.
https://sailsjs.com/documentation/concepts/blueprints/blueprint-routes

More details on the actions it creates/uses.
https://sailsjs.com/documentation/concepts/blueprints/blueprint-actions

Even more impressive is the APIs it creates for relationship fields.