Comments (1)
gorm:"ForeignKey:XXX" was mandatory
No way.
Since gorm can understand that relation, we can understand it as well.
I want to hear everyone's opinion.
I like this idea, but it's not high priority.
This api is a kind of simple replacement of direct access of SQL database, so current response is not too bad.
If you can find simple and clear implementation to achieve this, I'm positive. Please keep in mind that you should not make the code too dirty to achieve this.
from apig.
Related Issues (20)
- Define alias for db package in controller
- Filtering with q[field_name] not working if field has different name in json HOT 2
- Is this project dead ? HOT 1
- Generate documents in API Blueprint
- Error installing HOT 1
- Support structs that use gorm.Model HOT 2
- Is this still project abandoned HOT 2
- apig gen command shows : Invalid import path HOT 2
- [2016-07-22] Points need to be fixed HOT 5
- Accept: application/vnd.{{ .User }}+json seems too complecated
- Rewrite apig command line parser tcnksm/gcli
- Rename command to the shorter one HOT 2
- JSON output should pretty format HOT 3
- generate boilerplate command is wrong? HOT 6
- Consider setting up top page HOT 2
- Accept json post request HOT 3
- Running apig gen panics if a struct field does not have a tag. HOT 1
- controllers/root.go is not generated HOT 3
- panic: runtime error: index out of range HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apig.