Comments (4)
http://www.sinatrarb.com/intro.html for additional formats perhaps worth supporting.
In this case, seems like convention is just to pass those params in as strings.
from plumber.
In my experience there's lots of APIs that use a format like @get /cars/:id
- instead of id
being a query parameter - possible to support @get /cars/:id
?
from plumber.
Totally, I just used the bracket syntax so you could more easily specify the expected type of the param. So it would be @get /cars/<id>
or @get/cars/<id:int>
if you wanted to save yourself an as.integer()
. http://plumber.trestletech.com/docs/routing/
from plumber.
thanks :)
from plumber.
Related Issues (20)
- Calling POST from C# code does not process body correctly HOT 2
- in parseUTF8() on Windows with enc "unknown", src is ignored / / overwritten HOT 7
- Parameter collisions don't err (but should?) HOT 4
- Error caught segfault HOT 2
- Is it possible to use Plumber API with custom oAuth on Posit Connect HOT 6
- A love letter to Plumber ... and a request to find out more about its roadmap moving fowards. HOT 4
- Serializer for multipart/form-data HOT 3
- Make defaultErrorHandler more verbose in the Connect application logs HOT 8
- "Plumber Server" section in Tips & Tricks article HOT 2
- R process not releasing memory; Want aggressive garbage collection HOT 1
- Set plumber options through env HOT 3
- Default `path` value in `session_cookie()`
- set parser failed with attempt to apply non-function
- Plumber is not releasing memory HOT 11
- How to add operationId in Plumber? HOT 3
- how to redirect to /docs/ not the /__docs__/?
- Parse rds could avoid hitting disk
- Endpoint with octet serializer which receives a file in the request freezes whole Plumber.R execution
- Swagger is locked when using the `checkAuth` filter example from docs
- New hook after route has been found but before it's been evaluated HOT 1
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 plumber.