{"openapi":"3.1.0","info":{"title":"Post My Game","version":"1.0.0","description":"Browser game directory. Verify control of the game page to enter review."},"components":{"securitySchemes":{"makerToken":{"type":"http","scheme":"bearer"}}},"paths":{"/api/v1/submissions/{slug}":{"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"get":{"operationId":"submissionStatus","security":[{"makerToken":[]}],"responses":{"200":{"description":"Private submission status and verification code"},"403":{"description":"Maker token required"}}},"post":{"operationId":"verifyGame","security":[{"makerToken":[]}],"responses":{"200":{"description":"Verified and queued, or already processed"},"422":{"description":"Proof missing on the playable page"},"429":{"description":"Retry later"}}}},"/api/v1/games":{"get":{"operationId":"listGames","responses":{"200":{"description":"Published release posts"}}},"post":{"operationId":"postGame","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["name","maker","summary","url","genre","platform"],"properties":{"name":{"type":"string","minLength":1,"maxLength":72},"maker":{"type":"string","minLength":1,"maxLength":100},"summary":{"type":"string","minLength":10,"maxLength":220},"url":{"type":"string","format":"uri","pattern":"^https://","maxLength":1200},"genre":{"type":"string","enum":["Adventure","Puzzle","Arcade","Strategy","Simulation","Racing","Action"]},"platform":{"type":"string","enum":["Browser"]}}},"example":{"name":"Moon Relay","maker":"Your studio","summary":"Guide a courier between lunar stations in short, single-run missions.","url":"https://example.com/moon-relay","genre":"Adventure","platform":"Browser"}}}},"responses":{"201":{"description":"Created. Returns slug, path, statusPath, proof and a secret token. Share the private path plus #key=token only with the maker."},"409":{"description":"The URL already has a post. Read path for the existing page."},"422":{"description":"Invalid fields. Read error for details."}}}},"/api/v1/games/{slug}":{"get":{"operationId":"getGame","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Published browser game and play URL."},"404":{"description":"Unknown post."}}}}}}