Coder Social home page Coder Social logo

Comments (10)

chrisarcand avatar chrisarcand commented on September 18, 2024 3

Are you saying that as a header or a proper route the performance of this call will have a lesser impact on server load?

Yes; we need only respond with a count when all you're asking for is a count and optimize for that case, and while the hide=resources is a slight optimization this would be a much better one - and make more sense semantically. It's sort of a weird shoehorning of something that doesn't imply it's purpose in the querystring besides.

Are you proposing the depreciation of ?hide=resources ?

Yes; this is it's sole purpose (to my knowledge) and this new way would replace it.

Custom headers as a means of grabbing metadata are a little surprising, not something ya might know unless explicitly told, does this work include creating the documentation to say, "hey, yeah, we do this now, grabbing skinny metadata with custom headers"?

Surprising only if it's not documented, yeah πŸ˜„ Yes, I'll change the site documentation accordingly to help make it obvious that this is the correct way to do it.

RE: and yah, ?hide=resources is used when we only want the count of a query, none of the resources, actions, or paging

Excellent, that's what I figured.


Re: question 3, I'd like to discuss a reimplementation of API documentation to help consumers of the API like you to make sense of what's being deprecated, when it's being deprecated ("What release was this available? Deprecated? What changed?), etc etc. We currently don't have any way to deduce that from the documentation at all and I can respect from your end that it's probably pretty annoying to deal with. This is a whole separate can of worms that I'll bring up later, but thought I'd mention here as this is a great example.

from manageiq-api.

AllenBW avatar AllenBW commented on September 18, 2024 1

We DO use them quite often for sidebar counts. I'm down for whatever! If a change needs to be made lemme know and it'll be done

Ok now to the questions:

  1. Are you saying that as a header or a proper route the performance of this call will have a lesser impact on server load?
  2. Are you proposing the depreciation of ?hide=resources ?
  3. Custom headers as a means of grabbing metadata are a little surprising, not something ya might know unless explicitly told, does this work include creating the documentation to say, "hey, yeah, we do this now, grabbing skinny metadata with custom headers"?

from manageiq-api.

chrisarcand avatar chrisarcand commented on September 18, 2024

cc/ @imtayadeway @AllenBW from ManageIQ/manageiq#12694

from manageiq-api.

AllenBW avatar AllenBW commented on September 18, 2024

RE: and yah, ?hide=resources is used when we only want the count of a query, none of the resources, actions, or paging

from manageiq-api.

Fryguy avatar Fryguy commented on September 18, 2024

I'd like to discuss a reimplementation of API documentation

This should probably be discussed in the context of our discussion about moving to swagger, since the way the swagger API is documentation driven.

from manageiq-api.

abellotti avatar abellotti commented on September 18, 2024

πŸ‘ on swagger, @mkanoor did a nice presentation/poc on that.

from manageiq-api.

chrisarcand avatar chrisarcand commented on September 18, 2024

Yup!

from manageiq-api.

miq-bot avatar miq-bot commented on September 18, 2024

This issue has been automatically marked as stale because it has not been updated for at least 6 months.

If you can still reproduce this issue on the current release or on master, please reply with all of the information you have about it in order to keep the issue open.

Thank you for all your contributions!

from manageiq-api.

JPrause avatar JPrause commented on September 18, 2024

@abellotti is this still a valid issue? If yes, please remove the stale label. If not can you close.
If there's no update by next week, I'll be closing this issue.

from manageiq-api.

JPrause avatar JPrause commented on September 18, 2024

Closing issue. If you feel the issue needs to remain open, please either reopen or let me know and it will be reopened.
@miq-bot close_issue

from manageiq-api.

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.