Module: WikidataAdaptor::TestHelpers::RestApi::OpenApiDocument
- Included in:
- WikidataAdaptor::TestHelpers::RestApi
- Defined in:
- lib/wikidata_adaptor/test_helpers/rest_api/open_api_document.rb
Overview
Instance Method Summary collapse
-
#stub_get_openapi_document(response_body = nil) ⇒ Object
GET /v1/openapi.json.
Instance Method Details
#stub_get_openapi_document(response_body = nil) ⇒ Object
GET /v1/openapi.json
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/wikidata_adaptor/test_helpers/rest_api/open_api_document.rb', line 11 def stub_get_openapi_document(response_body = nil) stub_rest_api_request( :get, "/v1/openapi.json", response_body: response_body || { openapi: "3.0.0", info: { title: "Wikibase REST API", version: "...", description: "OpenAPI definition of Wikibase REST API" }, paths: {} } ) end |