Skip to content
Snippets Groups Projects
Open Define a ruleset for REST API Endpoints
  • View options
  • Define a ruleset for REST API Endpoints

  • View options
  • Define a ruleset for REST API Endpoints

    Open Issue created by chandi

    currently we have already implemented some API Endpoints where responses are basically the same data from the database/gateway passed through the RestController, without changing it's pretty badly styled data structure

    GET /api/conversations
    {
        "id": "412072",
        "last": "2019-02-01 10:36:58",
        "lastTimestamp": "1551433018",
        "member": [
            {
                "id": "101",
                "name": "Bodhi",
                "photo": "94507227296c5e2edd9fa3afa4ff2cae.jpg",
                "gender": "1"
            }
        ],
        "lastMessage": "Liebes Testbetrieb [...]",
        "lastFoodsaverId": "252584",
        "unread": "1",
        "name": "Team Testbetrieb 332"
    }

    since multiple projects (mobile apps) start to rely on this data, it get's more and more difficult to change such formats afterwards without braking them, so I think we should define a ruleset of how we style the API requests and responses.

    This issue is meant as an place for discussion about rules, which we could then update in the devdocs.

    TODO

    collected thoughts

    Are moved to the Devdocs

    2 of 8 checklist items completed · Edited by Alex
    • Merge request
    • Branch

    Linked items ... 0

  • Activity

    • All activity
    • Comments only
    • History only
    • Newest first
    • Oldest first
    Loading Loading Loading Loading Loading Loading Loading Loading Loading Loading