3f59f58ffb5b04bd2d82919278147f7dd2059602
[yaffs-website] / api / commands / navigation / visit.md
1 visit
2 ============
3 To visit a page you have to send the following JSON POST request body:
4
5 ```json
6 {
7   "name": "visit",
8   "args":[
9     "http://gastonjs.readthedocs.org/en/latest/"
10   ]
11 }
12 ```
13
14 GastonJS takes as `"visit"` as the command to run and expects only one argument which is the page you want to visit, in this case is `"http://gastonjs.readthedocs.org/en/latest/"`
15
16 A successful `"visit"` command will return the following body:
17 ```json
18 {
19   "response": {
20       "status": "success"
21   }
22 }
23 ```