{"repo":"jormaechea/open-api-mocker","free":true,"listed":false,"github":"https://github.com/jormaechea/open-api-mocker","clone":"git clone https://github.com/jormaechea/open-api-mocker.git","description":"A mock server based in OpenAPI Specification","language":"JavaScript","stars":127,"topics":["api","openapi","schema","mock","mocking","mock-server","api-mocker","schemas","docker"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"OpenAPI Mocker An API mocker based in the OpenAPI 3.0 specification. Installation and usage Using npm Using docker Or to run an specific version You can set any parameter when running inside a docker container Capabilities - [x] Read yaml and json OpenAPI v3 schemas. - [x] Port binding selection - [x] Request parameters validation - [x] Request body validation - [x] Response body and headers generation based on examples or schemas - [x] Response selection using request header: Prefer: statusCode=XXX or Prefer: example=name - [x] Request and response logging - [x] Servers basepath support - [x] Support x-faker and x-count extension methods to customise generated responses - [ ] API Authentication Customizing Generated Responses The OpenAPI specification allows custom properties to be added to an API definition in the form of x- . OpenAPI Mocker supports the use of two custom extensions to allow data to be randomised which should allow for more realistic looking data when developing a UI against a mock API for instance. x-faker The x-faker extension is valid for use on properties that have a primitive type (e.g. string / integer , etc.) and can be used within an API definition to use one or more methods from the community mantained Faker library for generating random data. Given the following API definition: A JSON response similar to the following would be produced: The x-faker extension accepts values in 3 forms: 1. fakerNamespace.method . e.g. string.uuid 2. fakerNamespace.m","default_branch":null,"files":null,"tree":[],"storefront":"/r/jormaechea","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jormaechea/open-api-mocker/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}