Translate the whole site to English: English routes with 301 redirects from the Dutch paths, English UI, docs, seeds and captions, one-time live content migration
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
# retoor <retoor@molodetz.nl>
|
||||
from molodetz.docs_api.registry import endpoint, field
|
||||
|
||||
GROUP = {
|
||||
"slug": "join",
|
||||
"title": "Join",
|
||||
"description": "Sign up to write along. Stored for administrators, never public.",
|
||||
"endpoints": [
|
||||
endpoint("GET", "/join", "Join form", sample={"submitted": False}),
|
||||
endpoint(
|
||||
"POST",
|
||||
"/join",
|
||||
"I'm in",
|
||||
"Stores a join request: name, contact and an optional repo link.",
|
||||
fields=[
|
||||
field("name", required=True, example="Ada"),
|
||||
field("contact", required=True, example="ada@example.com"),
|
||||
field("repo_url", example="https://git.example.com/ada"),
|
||||
field("message", example="I write about finishing things."),
|
||||
],
|
||||
sample={"ok": True, "redirect": "/join?ok=1", "data": {"uid": "0190..."}},
|
||||
probe_body={"name": "Probe", "contact": "probe@example.com"},
|
||||
),
|
||||
],
|
||||
}
|
||||
Reference in New Issue
Block a user