Replies: 2 comments 2 replies
-
|
Think this is worth re-visiting. A CRUD-template would make sense to have. Will look into it later today, |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Right. We have actually linked to that article from novaframework.org :) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I think it would be a lot more intuitive to understand and use nova if it could come with a template with the basic CRUD operations over a given domain model , so that the user could see how can he define the different exposed methods using either querystring or json.
Ideally the template could also contain the code to decode (using a serializer) and fetch some fields of the json
and also the code in order to encode back and send the json response.
The template could include a controller with the methods
The datalayer could just be a mock or another module with undefined methods or just some constant in the method , it doesn't rlly matter but the important part is for the new user to see how he handles json/binding/querystring, serialization,deserialization , json deconstruction (fetching particular fields)
And ideally this template could just be started and checked out with swagger.
P.S The idea came from C# where there are a couple of web api templates pic related

Beta Was this translation helpful? Give feedback.
All reactions