Comments (7)
@zzarcon @MP0w I thought we said the client doesn't have access to db externally, but we rather build a facade from the server around it
from kakapo.
But that would be pointless, the client has already an instance to it
from kakapo.
I don't get it
from kakapo.
@zzarcon ping
from kakapo.
Ah got it now, yes NSURLRequest must be passed
from kakapo.
@MP0w sorry for the delay, basically I think we should provide a way to access to the request body in the request hadnler
- http://www.w3schools.com/tags/ref_httpmethods.asp
Usually when you define a post handler, you want to create something in your db. In order to know what to create you have to inspect the request body. Abstract example:
let server = Server();
server.post('/users', (request, db) => {
//Imagine the body is parsed somehow
let user = request.body.user;
db.create(User, {
id: user.id,
firstName: user.first_name
});
});
from kakapo.
Yeah, sorry, we can just return the server there
from kakapo.
Related Issues (20)
- Update test dependencies and example dependencies in podfiles
- Add Changelog.md
- Extract serialization in it's own pod HOT 4
- Use travisCI caching HOT 1
- Remove sleep workaround from travis.yml once issue is fixed
- Fix CI random failures
- Update APIs to follow swift 3 naming guidelines HOT 11
- Included relationships of relationships in JSONAPI serialization
- Swift 2.2 support in 1.x release branch HOT 11
- Release PATCH support and backport it HOT 11
- Test some assertions with Quick
- Des-opinionate Api
- Kakapo + Vapor
- Provide way to perform the original requests
- Provide a "Request.continue()" that performs the original request
- Refactor Kakapo to not be JSON centric
- camelCase transformer is broken when there are multiple uppercase chars
- Swift 4 support HOT 2
- Issue when using SwiftLint, carthage failed to build scheme HOT 5
- Swift 5 support 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 kakapo.