confdb

module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2022 License: MIT

README

Topic implementation using SIP conference

Convention based on RFC4575

  • Each conference has a Conference Information (ConfInfo)
  • The ConfInfo has a list of participants (many User in a slice called Users)
  • Each ConfInfo is used as a Topic entity in a pub/sub system.

Usage

To run test, docker and docker-compose are required

  • pull project
  • to start: docker-compose up --build --force-recreate
  • try CRUD commands via curl
  • to stop: docker-compose down --remove-orphans --volumes --rmi 'local'

Example curl commands

  • Get all ConfInfos: curl --location --request GET 'http://localhost:8080/api/v1/confInfos'
  • Add a User to a Topic(id=3):
    --header 'Content-Type: application/json' \
    --data-raw '{
    "EntityURL": "newUser@url.com",
    "Role": "Subscriber"
    }'```
    
  • Delete a User (id=2) from a Topic(id=2):
    curl --location --request DELETE 'http://localhost:8080/api/v1/topicMode/confInfos/subject2/users/2' \
    --data-raw ''
    

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL