# CountdownPlugin

The plugin shows the remaining days until a configured target date.

## REST API

### Get target date and target day description.

    GET {{ORIGIN}}/rest/api/v1/display/uid/<PLUGIN-UID>/countdown

    GET {{ORIGIN}}/rest/api/v1/display/alias/<PLUGIN-ALIAS>/countdown

- PLUGIN-UID: The plugin unique id.
- PLUGIN-ALIAS: The plugin alias name.

### Set target day and target day desription.

    POST {{ORIGIN}}/rest/api/v1/display/uid/<PLUGIN-UID>/countdown?day=<DAY>&month=<MONTH>&year=<YEAR>&descPlural=<PLURAL>&descSingular=<SINGULAR>

    POST {{ORIGIN}}/rest/api/v1/display/alias/<PLUGIN-ALIAS>/countdown?day=<DAY>&month=<MONTH>&year=<YEAR>&descPlural=<PLURAL>&descSingular=<SINGULAR>

- PLUGIN-UID: The plugin unique id.
- PLUGIN-ALIAS: The plugin alias name.
- DAY: The target date day.
- MONTH: The target date month.
- YEAR: The target date year (YYYY format, e.g. 2020)
- PLURAL: The unit in plural form, e.g. DAYS.
- SINGULAR: The unit in singular form, e.g. DAY.

### Configuration

### Target Date

Plugin UID:
Target date:
Target day in plural form:
Target day in singular form: