Skip to content

Add website json field #630

@losolio

Description

@losolio

We need a public/anonymously available json field available for the frontend. Each organization should have the possibility of having one json object.. preferably available from /v3/organizations/1/sitesettings/

It could be either be available as a part of a the organization domain model, and then we need to have a anonymously available endpoint (which is not a problem, all info there is public)

this is an example of an json object we need to store and retrieve, but note that the content structure should not be a part of the domain model, it is the feature of storing the "raw" json which is of interest.

{
    "website": {
        "name": "Kursinord",
        "description": "De beste kursene!",
        "frontpage": {
            "title": "Ta kurs i Nordland!",
            "introduction": "Nordland Legeforening satser på fag, kvalitet og opplevelser.",
            "featuredImage": {
                "src": "https://example.com/frontpage-image.jpg",
                "alt": "alt text if needed",
                "caption": "Magic photo by Losvik"
            }
        },
        "footerLinks": [
            {
                "text": "Privacy Policy",
                "href": "https://asdf.com/privacy-policy"
            },
            {
                "text": "Terms of Service",
                "href": "https://asdf.com/terms-of-service"
            }
        ]
    }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions