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

(nominations) nominationType is present on list but not details API #266

Open
ryparker opened this issue Jul 20, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@ryparker
Copy link
Contributor

ryparker commented Jul 20, 2024

nominationType is provided on the nomination List API but it's not included in the nomination details API. I had expected the details API to include all of the list API's data.

List API

curl 'https://api.congress.gov/v3/nomination/118?format=json&limit=1&offset=0&api_key=<API_KEY>' \
{
    "nominations": [
        {
            "citation": "PN1906",
            "congress": 118,
            "latestAction": {
                "actionDate": "2024-07-08",
                "text": "Received in the Senate and referred to the Committee on Armed Services."
            },
            "nominationType": {
                "isMilitary": true
            },
            "number": 1906,
            "organization": "Air Force",
            "partNumber": "00",
            "receivedDate": "2024-07-08",
            "updateDate": "2024-07-18T10:14:13Z",
            "url": "https://api.congress.gov/v3/nomination/118/1906?format=json"
        }
    ],
    "pagination": {
        "count": 1995,
        "next": "https://api.congress.gov/v3/nomination/118?offset=1&limit=1&format=json"
    },
    "request": {
        "congress": "118",
        "contentType": "application/json",
        "format": "json"
    }
}

Details API

curl 'https://api.congress.gov/v3/nomination/118/1906?format=json&api_key=<API_KEY>' \
{
    "nomination": {
        "actions": {
            "count": 1,
            "url": "https://api.congress.gov/v3/nomination/118/1906/actions?format=json"
        },
        "authorityDate": "2024-07-17",
        "citation": "PN1906",
        "committees": {
            "count": 1,
            "url": "https://api.congress.gov/v3/nomination/118/1906/committees?format=json"
        },
        "congress": 118,
        "isList": true,
        "latestAction": {
            "actionDate": "2024-07-08",
            "text": "Received in the Senate and referred to the Committee on Armed Services."
        },
        "nominees": [
            {
                "introText": "The following named officers for appointment in the United States Air Force to the grade indicated under title 10, U.S.C., section 624:",
                "nomineeCount": 19,
                "ordinal": 1,
                "organization": "Air Force",
                "positionTitle": "Major General",
                "url": "https://api.congress.gov/v3/nomination/118/1906/1?format=json"
            }
        ],
        "number": 1906,
        "partNumber": "00",
        "receivedDate": "2024-07-08",
        "updateDate": "2024-07-18T10:14:13Z"
    },
    "request": {
        "congress": "118",
        "contentType": "application/json",
        "format": "json",
        "number": "1906"
    }
}
@apreiter18 apreiter18 added the enhancement New feature or request label Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants