Comments (9)
Absolutely! I have not made anything in the request yet - please stay tuned. And thank you for your feedback
from ileastic.
As a follow up, I had an idea for routing parts.
For example, if you'd like to make a dynamic rest API: the URL could be split up into parts.
getURLPart(request.url:1); //where request.url = '/id/101', would return '101'
from ileastic.
Just to keep notes. request.url
and request.resource
were both added in 46e327e.
from ileastic.
Each ILEastic definitely needs to handle multiple endpoints. It would scale really bad if you need to have one service running for each endpoint.
I think we need to split the registering of an endpoint from the starting of the server (as it is now with the il_listen function).
The minimum parts for adding an endpoint should be the address of the endpoint, url and HTTP method.
In modern frameworks the available content types (for the return value) is also part of the routing.
from ileastic.
For example, if you'd like to make a dynamic rest API: the URL could be split up into parts.
This should be no feature but a default requirement to the framework. It is not possible to build a decent API without accessing the single parts of the URL.
from ileastic.
Partly solved - routing is added, but picking the parameters are still missing
from ileastic.
working on the "parameter pickup" now ...
from ileastic.
Path segments can now be retrieved by index, see il_getRequestSegmentByIndex() . Can we close this issue?
from ileastic.
Yes let's close it: Now there is two options to the solution. Your @m1h43l il_getRequestSegmentByIndex() and my callback solution with regex. They both server a their own purpose. Great work @m1h43l !!
from ileastic.
Related Issues (20)
- Issue on compile HOT 7
- Post Response Plugins not called on exception
- Examples compile fails HOT 1
- Add setSqlServerMode as a utility procedure HOT 2
- il_responseWriteStream returns incomplete JSON HOT 5
- Issue on compile HOT 1
- Issue compiling plugins HOT 5
- Wrong route id set on request HOT 8
- Using il_getPathParameter Without Index Returns Wrong Value HOT 1
- Service program incompatible due to changed order of procedure exports
- Support handling of multiple media types in Accept HTTP header
- Add id for endpoint to request HOT 1
- Escape message on no route found for request HOT 2
- Path parameter binding not working if parameter is in middle of URL HOT 4
- Request not returning
- Pluggable error logging
- Example from Read.me don't work -> Pointer not set for location referenced HOT 4
- Can not install Library HOT 7
- parameter by name and use regex HOT 1
- Memory leak in JWT plugin HOT 2
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 ileastic.