Code Monkey home page Code Monkey logo

Comments (6)

timhabermaas avatar timhabermaas commented on June 16, 2024

That's how it's currently implemented: http://178.62.217.148/records/333?ids=2007HABE01&ids=2007WEIN01

I still need to implement a better way to pass in several ids, probably using one comma separated parameter.

from cubecomp.

fw42 avatar fw42 commented on June 16, 2024

Could do it the standard Rails way of id[]=foo&id[]=bar&id[]=foobar

from cubecomp.

fw42 avatar fw42 commented on June 16, 2024

Maybe take a look at https://github.com/rustless/queryst/

from cubecomp.

fw42 avatar fw42 commented on June 16, 2024

Once your rust api becomes a bit more stable, maybe it makes sense to write a Ruby client for it...

from cubecomp.

timhabermaas avatar timhabermaas commented on June 16, 2024

Could do it the standard Rails way of id[]=foo&id[]=bar&id[]=foobar

Nice, I totally forgot how Rails does it. But I fear that I'll run into another issue: A URL with too many characters. Most browsers seem to support 2000 characters. This would only allow for about 130 ids (2000 / 15). This limitation might not be a problem outside of a browser, but I don't want to stress it. What other options are there when using GET? Custom headers?

Maybe take a look at https://github.com/rustless/queryst/

Thanks for the link!

Once your rust api becomes a bit more stable, maybe it makes sense to write a Ruby client for it...

👍

from cubecomp.

fw42 avatar fw42 commented on June 16, 2024

You could encode the query in the request body rather than in the query params... Not 100% sure if that works for GET or only POST.

from cubecomp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.