Change to using jsonrpc instead of reqwest #13
No reviewers
Labels
No Label
bug
documentation
duplicate
enhancement
help wanted
invalid
maintenance
peach-lib
peach-network
peach-oled
peach-stats
peach-web
question
refactor
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: PeachCloud/peach-dyndns-server#13
Loading…
Reference in New Issue
No description provided.
Delete Branch "jsonrpc"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR changes peach-dyndns-server to use jsonrpc instead of rocket, to allow for parity with the other peach microservices (that run on peachcloud) and to provide a nice framework for uniformly structured success and error messages for API requests.
The new jsonrpc methods are:
The service is deployed to peach-vps in the same was as before, using cargo-deb. For convenience, you can run the script
deploy_prod.sh
which contains all relevant commands for building and installing the deb on peach-vps.@mycognosist I'm merging this now if you want to take a look at your convenience