19 lines
454 B
C++
19 lines
454 B
C++
#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;
|
|
};
|