osedea / angular-osd-resource Goto Github PK
View Code? Open in Web Editor NEWCreate resources and decorators from a config file
License: MIT License
Create resources and decorators from a config file
License: MIT License
Hi.
I'm absolutely loving this app. People really need to understand that for a large scale app this is absolutely amazing.
In my current project to pull various data I had to create a shed load of functions in a data factory.
Then I needed a codeigniter controller with a load of functions to handle the calls. Now I'm creating one controller (api) with one function and within that aquery to call the data depending on the relationship, per old controller i.e. function child, function invoices, functions documents, and then depending on the URI segment uri segment 4 which is where your relationship usually sends.
I.e.
Www webaddress.co.uk/index.php/api/child/12/class
Or same /12/invoices
I'm doing the same as a function did before
Now I can just add relationships and the function is auto created.
And I can just use what I need and keep better track
A have a few things though.. I've tried submitting multiple ID's. I.e. I may need to send an ID for a person and and ID for a class at the same time as URI segments I.e. API/person/12/15/classes rather than 2 queries to get the same info.
To return that person and that class. But I've not been able to work it out so far
Or send multiple relationships at a time
I.e
Child/12/15/class/17/invoice
To return the class 15 detail for child 12 and invoice 17.
It's not a massive thing as in its current state it's absolutely superb. Just maybe needs a bit more fleshing out around the methods and sending multiple data.....
How would I send a serialised form with the post functionality?
Just me likely being tired, plus I'm currently on tramadol and diazepam for back pain and not quite yet fully understanding.
So more queries than issues. But I'm making several large scale applications and can do a lot of testing and helping. (Company intranet for 700 people) and a membership registration and payment gateway with several hundred users.
I've already transferred around 100 functions in a day. That would have taken me 5-10 days previously. I pull multiple days from over 200 database tables.
I've also reconfigured our app on the iOS store (built using ionic) to pull data using this rather than factory and see speed increases across the board.
Any help would be good. Sorry to rant on but you've got something great on your hands here.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.