Skip to content

[FEATURE] Add endpoints (proposals and current) to support new model H #305

@sandeep-ps

Description

@sandeep-ps

Is your feature request related to a problem? Please describe.
We need two new endpoints (proposals and current) to support the new model H.

Describe the solution you'd like
Add new endpoints to support both current and proposed scenarios using the below data structure:

{
  "2024": [
    {
      "state": "<Two-letter State code>",
      "totalPaymentInDollars": "<calculated by multiple mean payment rate with base acres for each commodity-program pair and adding up at the total amount>",
      "counties": [
        {
          "countyFIPS": "<County FIPS Code>",
          "scenarios": [
            {
              "scenarioName": "Current",
              "totalPaymentInDollars": "<calculated by multiple mean payment rate with base acres for each commodity-program pair and adding up at the total amount>",
              "commodities": [
                {
                  "commodityName": "Corn",
                  "baseAcres": 10000,
                  "programs": [
                    {
                      "programName": "ARC-CO",
                      "baseAcres": 5000,
                      "meanPaymentRateInDollarsPerAcre": 5.0,
                      "medianPaymentRateInDollarsPerAcre": 0.0,
                      "totalPaymentInDollars": 25000.0
                    },
                    {
                      "programName": "PLC",
                      "baseAcres": 5000,
                      "meanPaymentRateInDollarsPerAcre": 4.0,
                      "medianPaymentRateInDollarsPerAcre": 0.0,
                      "totalPaymentInDollars": 20000.0
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context

  • Based on meeting on 02/03, we need to display the total dollar amounts at the state level. This needs to be calculated based on base acres, mean rate, and summed up across all programs and counties in a state.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions