Sha256: cf2aa49e37598109bda8c852661d8fe629e96041907a607aeeb26be07bcf984d

Contents?: true

Size: 976 Bytes

Versions: 4

Compression:

Stored size: 976 Bytes

Contents

# Using custom OpenAPI specification and fixtures files

You can place custom OpenAPI specification and fixtures files in this
directory. The files must be in JSON format, and must be named `spec3.json`
and `fixtures3.json` respectively.

## Development

### Setup
The test suite depends on the [Prism Mock Server](https://github.com/stoplightio/prism).

```bash
npm install -g @stoplight/prism-cli

# OR

yarn global add @stoplight/prism-cli
```

Once installed, start the prism mock service with the following command:

```bash
prism mock https://raw.githubusercontent.com/team-telnyx/openapi/master/openapi/spec3.json
```

--------

One final step -- because the Ruby SDK originally expected to reach the legacy `telnyx-mock` service at port 12111 (in addition to providing a `/v2/` base path), we need to setup a proxy server.

You can do this any way you wish, but included is a server.js file which you can utilize:

```bash
# In new terminal window

node server.js
```

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
telnyx-3.0.5 test/openapi/README.md
telnyx-3.0.4 test/openapi/README.md
telnyx-3.0.3 test/openapi/README.md
telnyx-3.0.2 test/openapi/README.md