Advent Message API (1.0.0)

Download OpenAPI specification:Download

The festive advent API sample I wrote for 24 Days in Umbraco 2022. This the 11th year of the advent calendar.

Advent

Advent Operations

Get advent messages

Get a list of advent messages from the in-memory list

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Create advent message

Adds a new advent message to the in-memory list

Request Body schema: application/json

The request payload

Id
integer
Message
string

Responses

Request samples

Content type
application/json
{
  • "Id": 0,
  • "Message": "string"
}

Response samples

Content type
application/json
{
  • "Id": 0,
  • "Message": "string"
}

Get a single advent message

Get an advent messages from the in-memory list

path Parameters
id
required
integer

The id of the advent message to be retrieved

Responses

Response samples

Content type
application/json
{
  • "Id": 0,
  • "Message": "string"
}