feat: services

This commit is contained in:
2025-09-13 12:35:52 +02:00
parent 5d4d68ca2d
commit 995d973011
17 changed files with 656 additions and 366 deletions

18
include/ApiTypes.h Normal file
View File

@@ -0,0 +1,18 @@
#pragma once
#include <Arduino.h>
#include <vector>
struct ParamSpec {
String name;
bool required;
String location; // "query" | "body" | "path" | "header"
String type; // e.g. "string", "number", "boolean"
std::vector<String> values; // optional allowed values
String defaultValue; // optional default value (stringified)
};
struct EndpointCapability {
String uri;
int method;
std::vector<ParamSpec> params;
};