File tree 1 file changed +11
-9
lines changed
1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change 5
5
### Create Project
6
6
7
7
``` bash
8
- POST http://localhost:8000 /projects HTTP/1.1
8
+ POST {{api_url}} /projects HTTP/1.1
9
9
Content-Type: application/json
10
10
11
11
{
12
- " project_name " : " frog-routes"
12
+ " name " : " frog-routes"
13
13
}
14
14
```
15
15
@@ -28,21 +28,23 @@ Response body of a new project:
28
28
29
29
### Add routes to your project
30
30
31
+ A route is where you mock your HTTP response, using combination of "path",
32
+ "verb", "content_type", and "response_body":
33
+
31
34
``` bash
32
35
POST http://localhost:8000/projects/{{pid}}/routes HTTP/1.1
33
36
Content-Type: application/json
34
37
35
38
{
36
- path: " /users" ,
37
- verb: " DELETE" ,
38
- payload:
39
- {
40
- " firstName" : " Pei" ,
41
- " lastName" : " Wu"
42
- }
39
+ " path" : " /users" ,
40
+ " verb" : " DELETE" ,
41
+ " content_type" : " applicaton/json" ,
42
+ " response_body" : " {\" firstName\" : \" Pei\" , \" lastName\" : \" Wu\" }"
43
43
}
44
44
```
45
45
46
+ (to be continued)
47
+
46
48
## TODOS
47
49
48
50
### Project
You can’t perform that action at this time.
0 commit comments