Returning JSON and errors in Rocket.rs
Channel:
Subscribers:
7,980
Published on ● Video Link: https://www.youtube.com/watch?v=nQOg4DL-NqM
We start creating a Rocket API server and experiment with returning JSON objects and errors.
Chapters
00:00:00 Starting stream
00:04:52 Reviewing offstream code
00:07:46 Hello World GET
00:20:40 Can we version the API Routes easily?
00:24:52 Hello World POST
01:31:38 Returning JSON
01:23:34 Returning an Error
02:07:04 Abstacting Responses
03:33:37 Playing with Xilbe
03:37:28 Ending
Code: https://github.com/brooks-builds/point-collector-api
Twitter: https://www.twitter.com/brooks_patton
Twitch: https://twitch.tv/brookzerker
Other Videos By Brooks Builds (brookzerker)
Tags:
Rust
Rocket
API
JSON