OriginProtocol / origin-bridge

We've moved to a monorepo: https://github.com/OriginProtocol/origin/tree/master/infra/bridge
MIT License
15 stars 7 forks source link

Skeleton for internal indexing APIs #126

Closed franckc closed 6 years ago

franckc commented 6 years ago

First pull request? Read our guide to contributing

Checklist:

Description:

This PR implements the following:

Here is an example for calling the indexing API: curl -i -X PUT http://localhost:5000/api/indexing/search/listing -H "X-Internal-API-Token: dev-internal-api-token" -H "Content-Type: application/json" -d' { "listing": { "contract_address": "0x123", "title": "nice title", "description": "boo" } } '

franckc commented 6 years ago

@DanielVF When you got a min, do you mind reviewing this ? I'd like to get it in. As mentioned in the comments this is just a starting point and will need many more iterations to integrate with the EventListener... Thanks ! :)