[repo] Licence: CPAL-1.0 (LICENSE from the Domi template, every header and identifier; 0.2.0 and earlier stay MPL-2.0)

This commit is contained in:
2026-11-23 00:19:19 +01:00
parent 8b4570ca1a
commit 7e59a76ee3
171 changed files with 636 additions and 841 deletions
+4 -4
View File
@@ -1,6 +1,6 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// SPDX-License-Identifier: CPAL-1.0
// Copyright (c) 2026 Marek Novák. Part of Ianitor, under the Common Public Attribution
// License 1.0: see LICENSE (its Exhibit A is this file's notice).
//! The handlers, each annotated for the OpenAPI document.
@@ -1375,7 +1375,7 @@ impl Modify for Bearer {
description = "REST + JSON on loopback. Every call needs `Authorization: Bearer <API token>`. \
Errors are `{error: {code, message, field, params, retry_after_s, detail}, errors: [...], request_id}`. \
Every JSON object answer carries `server_time`. See docs/api.md and docs/ui-api.md.",
license(name = "MPL-2.0")
license(name = "CPAL-1.0", identifier = "CPAL-1.0")
),
paths(
overview, list_hosts, get_host, validate_host, create_host, update_host, patch_host, delete_host,
+3 -3
View File
@@ -1,6 +1,6 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// SPDX-License-Identifier: CPAL-1.0
// Copyright (c) 2026 Marek Novák. Part of Ianitor, under the Common Public Attribution
// License 1.0: see LICENSE (its Exhibit A is this file's notice).
//! The REST + JSON API on loopback (`/api/v1`), with its OpenAPI document generated from the
//! handlers (utoipa).
+3 -3
View File
@@ -1,6 +1,6 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// SPDX-License-Identifier: CPAL-1.0
// Copyright (c) 2026 Marek Novák. Part of Ianitor, under the Common Public Attribution
// License 1.0: see LICENSE (its Exhibit A is this file's notice).
//! Certificates (docs/ui-api.md §1.7, §1.8, §3.6) and the engine switch (§1.9).
+3 -3
View File
@@ -1,6 +1,6 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// SPDX-License-Identifier: CPAL-1.0
// Copyright (c) 2026 Marek Novák. Part of Ianitor, under the Common Public Attribution
// License 1.0: see LICENSE (its Exhibit A is this file's notice).
//! In front of the API guard: the built web UI (`[ui] static_dir`) and the one-time device
//! downloads. The UI's files hold no data (it reads everything from the API, which the guard
+3 -3
View File
@@ -1,6 +1,6 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// SPDX-License-Identifier: CPAL-1.0
// Copyright (c) 2026 Marek Novák. Part of Ianitor, under the Common Public Attribution
// License 1.0: see LICENSE (its Exhibit A is this file's notice).
//! Response shapes (docs/ui-api.md §1, §2), built from control's state. Times are RFC 3339
//! UTC; every JSON object answer also gets `server_time` from the API layer.