Skip to content

Instantly share code, notes, and snippets.

@kurenn
Created April 8, 2015 00:49
Show Gist options
  • Save kurenn/9205589385479d60d409 to your computer and use it in GitHub Desktop.
Save kurenn/9205589385479d60d409 to your computer and use it in GitHub Desktop.
A simple client for a simple API
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title></title>
</head>
<body>
<form action="http://localhost:3000/tasks.json" method="post">
<label for="">Description</label>
<textarea name="task[description]" id="" rows="8" cols="40"></textarea>
<br />
<label for="">Due date</label>
<input type="date" name="task[due_date]" id="" value="" />
<br />
<label for="">Completed?</label>
<input type="checkbox" name="task[complete]" id="" value="1" />
<br />
<input type="submit" name="" id="" value="Guardar" />
</form>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment