26 lines
1013 B
Python
26 lines
1013 B
Python
# retoor <retoor@molodetz.nl>
|
|
from molodetz.docs_api.registry import endpoint, field
|
|
|
|
GROUP = {
|
|
"slug": "binnen",
|
|
"title": "Binnen",
|
|
"description": "Aanmelden om mee te schrijven. Opgeslagen voor beheerders, nergens publiek.",
|
|
"endpoints": [
|
|
endpoint("GET", "/binnen", "Aanmeldformulier", sample={"submitted": False}),
|
|
endpoint(
|
|
"POST",
|
|
"/binnen",
|
|
"Ik schrijf mee",
|
|
"Slaat een aanmelding op: naam, contact en optioneel een repo-link.",
|
|
fields=[
|
|
field("name", required=True, example="Ada"),
|
|
field("contact", required=True, example="ada@example.nl"),
|
|
field("repo_url", example="https://git.example.nl/ada"),
|
|
field("message", example="Ik schrijf over afmaken."),
|
|
],
|
|
sample={"ok": True, "redirect": "/binnen?ok=1", "data": {"uid": "0190..."}},
|
|
probe_body={"name": "Probe", "contact": "probe@example.nl"},
|
|
),
|
|
],
|
|
}
|