Skip to content

Latest commit

 

History

History
109 lines (98 loc) · 3.3 KB

File metadata and controls

109 lines (98 loc) · 3.3 KB

funding-service-design-notification-hub

made-with-python Code style : black

Repo for the funding service design notification.

Built with Flask.

Follow main README.md to install & run flask app

path: FUNDING-SERVICE-DESIGN-NOTIFICATION/README.md

How to post data for template APPLICATION_RECORD_OF_SUBMISSION

To post data, use /send endpoint with POST method. Data must be in the following format.

{
    "type": "APPLICATION_RECORD_OF_SUBMISSION",
    "to": "email@example.com",
    "content": {
        "application": {
        "round_name": "WINDOW 2 ROUND 2",
        "reference":"WUHJFDWJ",
        "date_submitted": "2022-05-20T14:47:12.111511",
        "forms": [
            {
            "name": "community-benefits",
            "questions": [
                {
                "question": "Potential to deliver community benefits",
                "fields": [
                    {
                    "title": "Question one",
                    "answer": "Answer one"
                    }
                ]
                }
            ]
            },
            {
            "name": "declarations",
            "questions": [
                {
                "question": "Declarations",
                "fields": [
                    {
                    "title": "Question two",
                    "answer": [
                        "Answer two (item one)",
                        "Answer two (item two)"
                    ]
                    }
                ]
                }
            ]
            }
        ]
        }
    }
}

How to post data for template INCOMPLETE_APPLICATION_RECORDS

To post data, use /send endpoint with POST method. Data must be in the following format.

{
    "type": "APPLICATION_RECORD_OF_SUBMISSION",
    "to": "email@example.com",
    "content": {
        "application": {
        "round_name": "WINDOW 2 ROUND 2",
        "reference":"WUHJFDWJ",
        "forms": [
            {
            "name": "community-benefits",
            "questions": [
                {
                "question": "Potential to deliver community benefits",
                "fields": [
                    {
                    "title": "Question one",
                    "answer": "Answer one"
                    }
                ]
                }
            ]
            },
            {
            "name": "declarations",
            "questions": [
                {
                "question": "Declarations",
                "fields": [
                    {
                    "title": "Question two",
                    "answer": [
                        "Answer two (item one)",
                        "Answer two (item two)"
                    ]
                    }
                ]
                }
            ]
            }
        ]
        }
    }
}