Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Max results query parametr #21

Open
smythp opened this issue Mar 22, 2018 · 3 comments
Open

Max results query parametr #21

smythp opened this issue Mar 22, 2018 · 3 comments
Labels
1.0 Issues for version 1.0 (current version) enhancement New feature or request

Comments

@smythp
Copy link

smythp commented Mar 22, 2018

Would be nice to have a query parameter that can return x number of results to speed up examples in the notebook.

@JonathanReeve JonathanReeve added enhancement New feature or request 1.0 Issues for version 1.0 (current version) labels Mar 23, 2018
@JonathanReeve
Copy link
Owner

Good idea. Yeah /api/subjects takes forever, and I don't know how to do profiling in Haskell, yet. I was thinking of caching stuff like that, since it's always going to be the same (for the moment, at least).

@smythp
Copy link
Author

smythp commented Mar 23, 2018

Caching sounds like a good idea. Can you support query parameters yet? You'll need them to do stuff likein the fancy SQL queries you showed off in your presentation.

@JonathanReeve
Copy link
Owner

Scotty has a parameter parser built-in, I'm pretty sure. The tutorial here says to do something like this:

get "/hello" $ do
  name <- param "name"
  text name

Which I imagine handles a URL like /hello?name="Jonathan", although I haven't tested it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.0 Issues for version 1.0 (current version) enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants