Comments (4)
Just use /persons?orderBy=name
vulcain acts as a reverse proxy it'll work
from vulcain.
My problem is about passing params to deep resources, I realized the issue was not very clear so I updated the example.
from vulcain.
I don't see the issue it should work just like this
from vulcain.
Sorry the previous requests were missing the query params I wanted to show :
GET /persons?orderBy=name&starships[type]=destroyer&starships.weapons[category]=nuclear
Preload: /*/starships/*/weapons
[
{
"id": "/persons/1",
"name": "Person 1",
"starships": "/starships?person=/persons/1&type=destroyer&weapons[category]=nuclear"
}
]
GET /starships?person=/persons/1&type=destroyer&weapons[category]=nuclear
[
{
"id": "/starships/1",
"name": "Starship 1",
"weapons": "/weapons?starship=/startships/1&category=nuclear"
}
]
GET /weapons?starship=/startships/1&category=nuclear
[
{
"id": "/weapons/1",
"name": "Weapon 1",
}
]
Here, to pass query params deeper, I add them to the root resource. Even if it's not a big problem, I see 2 minor inconveniences :
- If I want to change the weapons category to
explosives
, the whole graph of resource will change (less cache). - If there is too much deep query params, the URL of the root resource might hit the max length limit
Is this the recommended way of passing query params?
from vulcain.
Related Issues (20)
- Package deleted: https://github.com/dunglas/vulcain/caddy HOT 6
- Regression since 0.4.1 HOT 3
- Vulcain does not work "out of the box" with API Platform HOT 3
- Cannot tag Vulcain in Stackoverflow HOT 2
- integration: html - https://htmx.org/examples/ HOT 1
- Http,2,3 vulcain
- Flaky test
- Stateless authorization on preload requests
- Mistagged caddy module? HOT 6
- [Question] Can i use FrankenPHP with Vulcain and cache-handler in single Caddy process?
- Curren state HOT 2
- Preload link should include the "crossorigin" attribute, if initial request uses CORS
- Link Varnish X-Key broken HOT 1
- Aucun preload ne fonctionne HOT 2
- Fields issue on preload entity HOT 3
- Unable to decode with compressed response from origin HOT 1
- Preload only working on localhost HOT 1
- Request made by the browser does not contain the "authorization" header
- Response's body is percent encoded when parametrized queries HOT 1
- Re-add Server Push tests
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 vulcain.