Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
contactsamie committed Nov 7, 2018
1 parent b99e9f1 commit d103e07
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,22 @@ If you are using server.csv then note that the csv format is :
Note : that you can use regular expressions to pattern match the PathAndQuery !

For example, to return content or orders.json when GET or POST /GetOrders , then server.csv will contain
GetOrders , orders.json
`GetOrders , orders.json`

Another example, to return content or orders.json when only GET /GetOrders , then server.csv will contain
GetOrders , orders.json , get
`GetOrders , orders.json , get`

Another example, to return {'orderId':'1001'} when only POST /UpdateOrder , then server.csv will contain
UpdateOrder , {'orderId':'1001'} , POST
`UpdateOrder , {'orderId':'1001'} , POST`

Another example, to return a 404 when only GET /AllData , then server.csv will contain
UpdateOrder , {} , GET , 404
`UpdateOrder , {} , GET , 404`

Another example, to return {'orderId':'1001'} when only POST /UpdateOrder, matching the path and query exactly , then server.csv will contain
exactly UpdateOrder , {'orderId':'1001'} , POST
`exactly UpdateOrder , {'orderId':'1001'} , POST`

Another example, to return http:https://www.google.com content when only GET /google, matching the path and query exactly , then server.csv will contain
exactly /google , http:https://www.google.com , GET
`exactly /google , http:https://www.google.com , GET`

----
This is how a sample server.csv looks like https://github.com/ServeMeLlib/dev/blob/master/server.csv
Expand Down

0 comments on commit d103e07

Please sign in to comment.