Giter Club home page Giter Club logo

Comments (2)

jonquandt avatar jonquandt commented on July 30, 2024

@relarson1 - need to discuss with team, but some parts may be doable in the short-term, while others might be better served by the Search Service (#1), which I would like to prioritize in a fall release, based on current priorities.

from api.

jonquandt avatar jonquandt commented on July 30, 2024

@relarson1 - we have added this to the granule summaries for CRI and HOB. There is also functionality available in the granules service to allow filtering/searching by md5 value.

e.g.
https://api.govinfo.gov/packages/CRI-2017/granules?offset=0&pageSize=100&md5=DC5C1B65290BC73B141543156435C850&api_key=DEMO_KEY will return only a single matching granule.

This should be available for CRI and HOB files whenever they are updated. At some point, we can go back and do older years, but it appears that the CRI and HOB for 2019 all have values appearing within the granules summaries.

You can also filter for a specific md5 on the granule service like so:

https://api.govinfo.gov/packages/CRI-2019/granules?offset=0&pageSize=100
find an existing granule, e.g.: CRI-2019-ABC-INC, which has a md5 value of F656CC8A448D64682743EBC103BBC04C

If you add the &md5={{granule md5 value}} to the granule service, it will return only the granules that match that md5 (if they exist --if no results are returned, you could presume that the associated granule was updated)

https://api.govinfo.gov/packages/CRI-2019/granules?offset=0&pageSize=100&md5=F656CC8A448D64682743EBC103BBC04C

{
    "count": 1,
    "offset": 0,
    "pageSize": 100,
    "nextPage": null,
    "previousPage": null,
    "granules": [{
        "title": "ABC, INC.",
        "granuleId": "CRI-2019-ABC-INC",
        "granuleLink": "https://api.govinfo.gov/packages/CRI-2019/granules/CRI-2019-ABC-INC/summary",
        "md5": "F656CC8A448D64682743EBC103BBC04C"
    }]
}

from 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.