[tk:backend] Accept new contribution of type "APIEvent"
Closed this issue · 0 comments
ascariandrea commented
The issue #803 will let the extension send a new APIEvent
to the tk:backend as contribution that needs to be properly handled.
Proposed Solution
- extend the tk:backend schema with a new collection called
apiRequests
- define indexes for
id
(unique),experimentId
,publicKey
- define indexes for
- extend the current handler for
POST /v2/events
to accept the newAPIEvent
contribution and store it in the proper collectionapiRequests