Hey Y'All,
While embarking on the task of upgrading the backend side of OPM, I've decided I'm going to
FINALLY start using
mORMot 2.0!!
I've started my experimentation and I got to the point where I'm serving some content from a temporary
SQLite database. The idea is to use
PostgreSQL in production.
I'm a bit surprised by some of the
conventions that
mORMot 2.0 imposes. I was counting on it being
opinionated, like any other framework, but nonetheless, some of the
opinions are rather strange from someone that is used to
CakePHP that takes the same opinionated ideas from
Ruby on Rails.
All this long winded blah-blah to get to my immediate questions:
- How do I replace the /root endpoint with /api/v1, without using routes?
Cuz at the moment I am using routes, but the /root endpoint is still there. Sooo, no aliasing is kinda what I want. - How do I force the table names for each model?
I much prefer that both the tables and the fields be in lower case. I also like my models to be in the singular, but my tables to be in the plural.
Yeah, I know, I'm a bloody whiner, but I'm old and I have my own conventions 
- How do I change the case for the JSON that is served?
I'm rather spoiled by the fact that in Go I can define the JSON name for each field, and I'm wondering if I can do the same with mORMot 2.0
I think this is enough for now. When I have some other doubts, I'll keep adding to this thread.
Cheers,
Gus