Switch from request to request-json and simplify api.md