4 ms·
Main problem is that most of the frameworks out there are REST / noun based, because it's easier to scaffold. Are there any that are more rpc/post/verb based ou
by daxfohl 8y ago
Main problem is that most of the frameworks out there are REST / noun based, because it's easier to scaffold. Are there any that are more rpc/post/verb based out of the box?
- philwelch 8y agoBasically any HTTP microframework that has a minimum of ceremony between "declare HTTP URL endpoint" and "write function that handles requests to that endpoint". Flask, Sinatra, anything like that. Or, you could use swagger-codegen and generate your service from a handwritten OpenAPI spec.
- daxfohl 8y agoBasically agree, but was thinking more about something with a scaffold that specifically guides users toward a separation of actions and nouns, not just an indifference.
- philwelch 8y agoswagger-codegen kind of does that, with the tradeoff of making you define your API contract ahead of time.
- striking 8y agoPostgREST will generate a swagger spec for you from a database schema.