Book Canvas Padlet hallvard.hoyland.lavik@nmbu.no
Information
The following page is an addition to the book for the IND320 course at NMBU.
This site provides an example of a hosted API, that is fully customizable.
Documentation for the various endpoints can be found below.
api.ind320.no/dates

This endpoint retrieves data within a specified date range.

Parameters Example request

api.ind320.no/dates?startDate=2023-01-01&endDate=2023-01-31

Example response

[
    {
        "id": 1,
        "date": "2023-01-01",
    },
    {
        "id": 2,
        "date": "2023-01-02",
    },
    // ...
]
                
Response codes
api.ind320.no/id

This endpoint retrieves data with a specified id.

Parameters Example request

api.ind320.no/id?value=1

Example response

[
    {
        "id": 1,
        "date": "2023-01-01",
    },
]
                
Response codes