Socket
Book a DemoInstallSign in
Socket

rw-api-microservice

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rw-api-microservice

2.0.0
bundlerRubygems
Version published
Maintainers
2
Created
Source

Api Gateway registration Rails engine

Rails engine that integrates your rails-build microservices with the RW API

Build Status Test Coverage

Installation

Installing using bundler is recommended:

# Gemfile

gem 'rw-api-microservice-rails'

And then execute:

$ bundle install

Usage

Create a Rails initializer to define your connection settings to the RW API Gateway

#config/initializers/rw_api_microservice.rb
RwApiMicroservice.configure do |config|
      config.gateway_url = 'http://your-gateway-url.com'
      config.microservice_token = 'Gateway auth token'
    end

Current methods

This engine currently implements a convenience method:

  • microservice_request() makes a request to a different microservice within the RW API environment.

Contributing

Feel free to contribute, pull requests are welcome.

License

The engine is available as open source under the terms of the MIT License.

Testing

bundle exec rspec spec

FAQs

Package last updated on 22 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.