Git Product home page Git Product logo

rabbitmq_api's Introduction

Build Status Build Status Scrutinizer Code Quality Code Coverage

rabbitmq_api

Managing rabbitmq from your PHP code

stability

for now the stability level is alpha which means:

  • some commands have unit and integration test
  • For some commands tests are not available so who knows what supprising bugs may appear ^^ (keeping things interesting)

so only use this is you want to contribute

implemented features

GET PUT DELETE POST PATH
X /api/overview
X X /api/cluster-name
X /api/nodes
X /api/extensions
X /api/definitions
X /api/definitions/vhost
X /api/connections
X /api/vhosts/vhost/connections
/api/connections/name
/api/connections/name/channels
/api/channels
/api/vhosts/vhost/channels
/api/channels/channel
/api/consumers
/api/consumers/vhost
X /api/exchanges
X /api/exchanges/vhost
X X X /api/exchanges/vhost/name
X /api/exchanges/vhost/name/bindings/source
/api/exchanges/vhost/name/bindings/destination
X /api/exchanges/vhost/name/publish
X /api/queues
X /api/queues/vhost
X X X /api/queues/vhost/name
X /api/queues/vhost/name/bindings
/api/queues/vhost/name/contents
/api/queues/vhost/name/actions
/api/queues/vhost/name/get
X /api/bindings
X /api/bindings/vhost
X X /api/bindings/vhost/e/exchange/q/queue/props
/api/bindings/vhost/e/source/e/destination
/api/bindings/vhost/e/source/e/destination/props
X /api/vhosts
X X X /api/vhosts/name
X /api/vhosts/name/permissionse
X /api/users
X X X /api/users/name
X /api/users/user/permissions
/api/whoami
/api/permissions
/api/permissions/vhost/user
/api/parameters
/api/parameters/component
/api/parameters/component/vhost
/api/parameters/component/vhost/name
/api/global-parameters
/api/global-parameters/name
/api/policies
/api/policies/vhost
/api/policies/vhost/name
/api/aliveness-test/vhost
/api/healthchecks/node
/api/healthchecks/node/node

rabbitmq_api's People

Contributors

mcorten avatar scrutinizer-auto-fixer avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

rabbitmq_api's Issues

JobExchangePublish => when the exchange does not exists => throw exception

At this moment when you write to an Exchange that does not exists it will still return a guzzle result.
You hvae to disect this guzzle result to know if everything went ok.

It might be better to not leak 3rd party libraries to other projects, instead we need to disect the guzzle result in this library and return a result class (or throw an exception)

Name jobs consistent

Jobs are named: JobExchageNameList = list an exchange with the specified name.
New standard is:
JobExchangeListAll = list all the exchanges
JobExchangeListVirtualHost = list all Exchanges in a specified virtual host
JobExchangeList = list a specific Exchange

publish messages to exchanges

/api/exchanges/%2Ftest%2F/asd/publish

delivery_mode:"1" // 1 = non-persistent, 2 = persistent
headers:{}
name:"asd"
payload:"test"
payload_encoding:"string"
properties:{delivery_mode: 1, headers: {}}
props:{}
routing_key:""
vhost:"/test/"

Refactor MqManagementFactory

  • Do not load classes by a key, instead use the class itself as key
  • Clean up getJobMapper(), make it auto load a mapper
  • clean up the getJob* methods

create jobs: List, Create and Delete exchange bindings

  • list of all bindings
  • list of all bindings in a given virtual host
  • list of all bindings between a queue and an exchange
  • create binding to queue
  • create binding to exchange
  • delete binding to queue
  • delete binding to exchange

code cleanup jobs

  • required variable by constructor injection, only setters for optional parameters
  • remove user/password from job, there is no need for them
  • move auth and base headers to BaseMapper (from every mapper that implements BaseMapper)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.