Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
subeeshcbabu committed Jun 20, 2016
1 parent 6c2421e commit 4536c5d
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions docs/EXAMPLES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Mock examples are based on the above swagger api.

## Responses

### Response mock for the path `/pet/findByStatus`, operation `get` and response `200`.
#### Response mock for the path `/pet/findByStatus`, operation `get` and response `200`.

```javascript
var apiPath = 'http://petstore.swagger.io/v2/swagger.json';
Expand All @@ -21,7 +21,7 @@ Mock examples are based on the above swagger api.
console.log(mock);
});
```
#### Mock sample
##### Mock sample

```json
{
Expand All @@ -45,7 +45,7 @@ Mock examples are based on the above swagger api.
}
```

### Response mock for the path `/store/order/{orderId}`, get operation and all responses.
#### Response mock for the path `/store/order/{orderId}`, get operation and all responses.

```javascript
var mockgen = Swagmock(apiPath);
Expand All @@ -58,7 +58,7 @@ Mock examples are based on the above swagger api.
});
```

#### Mock sample
##### Mock sample

```json
{
Expand All @@ -77,7 +77,7 @@ Mock examples are based on the above swagger api.
}

```
### Response mock for the path `/store/order/{orderId}` and all operations and all responses.
#### Response mock for the path `/store/order/{orderId}` and all operations and all responses.

```javascript
var mockgen = Swagmock(apiPath);
Expand All @@ -89,7 +89,7 @@ Mock examples are based on the above swagger api.
});
```

#### Mock sample
##### Mock sample

```json

Expand Down Expand Up @@ -118,7 +118,7 @@ Mock examples are based on the above swagger api.

```

### Response mock for all the paths.
#### Response mock for all the paths.

```javascript
var mockgen = Swagmock(apiPath);
Expand All @@ -129,7 +129,7 @@ Mock examples are based on the above swagger api.
```
## Parameters

### Parameter mock for the path `/pet/findByStatus` and operation `get`.
#### Parameter mock for the path `/pet/findByStatus` and operation `get`.

```javascript
var mockgen = Swagmock(apiPath);
Expand All @@ -141,7 +141,7 @@ Mock examples are based on the above swagger api.
console.log(mock);
});
```
#### Mock sample
##### Mock sample

```json
{
Expand All @@ -155,7 +155,7 @@ Mock examples are based on the above swagger api.
}
```

### Parameter mock for the path `/store/order/{orderId}` and all operations.
#### Parameter mock for the path `/store/order/{orderId}` and all operations.

```javascript
var mockgen = Swagmock(apiPath);
Expand All @@ -167,7 +167,7 @@ Mock examples are based on the above swagger api.
});
```

#### Mock sample
##### Mock sample

```json

Expand All @@ -191,7 +191,7 @@ Mock examples are based on the above swagger api.
}

```
### Parameter mock for all the paths.
#### Parameter mock for all the paths.

```javascript
var mockgen = Swagmock(apiPath);
Expand All @@ -203,7 +203,7 @@ Mock examples are based on the above swagger api.

## Responses and Parameters

## For the path `/store/order/{orderId}`
#### For the path `/store/order/{orderId}`

```javascript
var mockgen = Swagmock(apiPath);
Expand All @@ -217,7 +217,7 @@ Mock examples are based on the above swagger api.
});
```

## For the path `/store/order/{orderId}` and operation `get`
#### For the path `/store/order/{orderId}` and operation `get`

```javascript
var mockgen = Swagmock(apiPath);
Expand All @@ -232,7 +232,7 @@ Mock examples are based on the above swagger api.
});
```

## For all the path
#### For all the path

```javascript
var mockgen = Swagmock(apiPath);
Expand Down

0 comments on commit 4536c5d

Please sign in to comment.