Julio Manuel Merino Vidal wrote about his experiences about prototyping a bunch of web apps whose ideas had been floating in author’s mind for a long time. Author spent quite a bit of time learning about REST APIs and, as part of these exercises, implemented skeletons of REST servers in both Go and Rust.
The API let us manipulate a collection of tasks where each task contains a textual description and a bit to indicate whether it is done or not.
Some guiding principles used by Julio:
- Decouple the REST API manipulation from the business logic
- Using JSON for the requests and responses as the serialization format
- Storing state in-memory only
- Staying away from high-level do-it-all frameworks
- Error handling needn’t be very accurate
You will get implementation in both Rust and Go, with all the code explained. Nice one!
[Read More]