New creates a new rest client
(transport runtime.ClientTransport, formats strfmt.Registry)
| 53 | |
| 54 | // New creates a new rest client |
| 55 | func New(transport runtime.ClientTransport, formats strfmt.Registry) *Rest { |
| 56 | cli := new(Rest) |
| 57 | cli.Transport = transport |
| 58 | |
| 59 | cli.Operations = operations.New(transport, formats) |
| 60 | |
| 61 | return cli |
| 62 | } |
| 63 | |
| 64 | // DefaultTransportConfig creates a TransportConfig with the |
| 65 | // default settings taken from the meta section of the spec file. |
no test coverage detected