WhiteflagProtocol / whiteflag-api

Reference implementation of the Whiteflag protocol in Node.js that acts as an API to connect applications with the underlying blockchains
https://api.whiteflagprotocol.org
Other
4 stars 5 forks source link

Add a feature to patch originator properties through the REST interface #9

Closed ts5746 closed 4 years ago

ts5746 commented 5 years ago

Currently, the originator data in the API's internal Whiteflag state is created and updated by the API automatically based on information from the blockchain; the information can only be read through the interface with a GET on the originator resource /originators/{address}. It would be useful to add a feature to the API REST interface to be able to PATCH an originator resource, e.g. to change the name and/or add additional properties.

ts5746 commented 4 years ago

Implemented PATCH and DELETE operations on the originator resource /originators/{address}. Tested and merged into develop in d7a6dde458ac551af12b25779d2ba1d82ad3bb11.