samagra-comms / uci-apis

Unified Communications Interface (UCI) is a system that powers governments to create and manage conversations with citizens and with its own officials. Through UCI governments can seamlessly setup simple and complex conversations using a multi-channel approach. UCI aims to democratize the use of different communication channels such as WhatsApp, Telegram, SMS, email for governance use cases through a standard configurable manner that is reusable and scalable across all governance use cases.
12 stars 30 forks source link

Invalidate cache on transaction layer on bot update #202

Closed chinmoy12c closed 1 year ago

chinmoy12c commented 1 year ago

Transaction layer bot cache needs to be invalidated on bot update so that there is no inconsistent data on the transaction layer after an update occurs.

chinmoy12c commented 1 year ago

@pankajjangid05 please attach the curl for invalidating the cache on transaction layer.

pankajjangid05 commented 1 year ago

API for removing caffeine cache from the transaction layer :

curl --location --request DELETE 'http://localhost:9080/cache/caffeine/removeAll' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic Authorization_Key'

Currently, this API is working but we are not sending any success or fail response from the transaction layer. So I need to add the success or fail response in this API.

pankajjangid05 commented 1 year ago

Hey @chinmoy12c

Please review these PRs: Utils Inbound

chinmoy12c commented 1 year ago

PR has been raised.