Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@AtmegaBuzz
Copy link
Member

@AtmegaBuzz AtmegaBuzz commented Jul 29, 2023

FIX List Bughunt API Supporting new Bughunt Model changes #1233

New Bughunt API supports new model with paginated response

As we have model changes and we are storing prizes in new table

API Response

{
    "count": 3,
    "next": null,
    "previous": null,
    "results": [
        {
            "id": 19,
            "name": "Hunt 11 Updated",
            "description": "dasdasdasda\r\nsd\r\nasdasdasdasd",
            "url": "https://www.bugheist.com",
            "prize": null,
            "prize_winner": "0.00",
            "prize_runner": "0.00",
            "prize_second_runner": "0.00",
            "logo": "/media/logos/2e3c37afc-d634-4933-b9e2-4f05e6e3a7c9.png",
            "banner": "/media/banners/28ae4b773-e749-435f-b856-a492c9970289.png",
            "plan": "",
            "txn_id": null,
            "color": null,
            "created": "2023-07-27T06:42:24.846190Z",
            "starts_on": "2023-07-27T00:00:00Z",
            "end_on": "2029-01-12T00:00:00Z",
            "is_published": true,
            "result_published": false,
            "modified": "2023-07-27T08:09:08.225947Z",
            "domain": 1,
            "prizes": [
                {
                    "id": 7,
                    "name": "Winner 1",
                    "value": 1000,
                    "no_of_eligible_projects": 1,
                    "valid_submissions_eligible": false,
                    "prize_in_crypto": true,
                    "description": "dasdasdasdasdad",
                    "hunt": 19
                },
                {
                    "id": 8,
                    "name": "Winner All",
                    "value": 1000,
                    "no_of_eligible_projects": 1,
                    "valid_submissions_eligible": true,
                    "prize_in_crypto": true,
                    "description": "asdasdsdasdasd",
                    "hunt": 19
                }
            ]
        },
}

@AtmegaBuzz AtmegaBuzz requested a review from justary27 July 30, 2023 18:05
@AtmegaBuzz AtmegaBuzz requested a review from DonnieBLT August 12, 2023 16:13
@AtmegaBuzz AtmegaBuzz enabled auto-merge August 12, 2023 16:26
@AtmegaBuzz AtmegaBuzz merged commit 82140ae into OWASP-BLT:main Aug 12, 2023
DonnieBLT pushed a commit that referenced this pull request Aug 12, 2023
Feature: Support new model changes in new Bughunt API
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants