-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrate @Model
and @Routable
for default API
#6
Comments
See also #13 |
etsuo
changed the title
Automatic default CRUD api for @Routable class?
Integrate Apr 20, 2017
@Model
and @Routable
for default API
etsuo
added a commit
that referenced
this issue
Apr 20, 2017
This was referenced Apr 22, 2017
etsuo
added a commit
that referenced
this issue
May 3, 2017
… also fixed issue with falsy properties not working right in some circumstances
etsuo
added a commit
that referenced
this issue
May 6, 2017
…et converted from their json fields to db fields, which is handed off to MongoDB in the proper “dot” notation for accessing embedded documents. This renders #61 unnecessary.
etsuo
added a commit
that referenced
this issue
May 6, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The idea here is that
@Routable
will take a optional model property which can be any Class that's decorated with@Model
. If a model is provided, by default, the@Routable
class will support:Since the
@Routable
optionalsuppressApi
property has the stringdelete
provided in its array, a route for DELETE model/ will not be created.Alternatively,
exposeApi
also takes an array of strings, but it defaults to all APIs being suppressed except those explicitly exposed.APIs include:
prevent NoSQL injection(moved to Create tests for noSql injection resistance #65)The text was updated successfully, but these errors were encountered: