Returning JSON and errors in Rocket.rs

Subscribers:
7,980
Published on ● Video Link: https://www.youtube.com/watch?v=nQOg4DL-NqM



Duration: 2:36:54
907 views
14


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)


2022-03-06Fixing the Twitchchat wrapper - Livestream VOD 2022-02-25
2022-03-05Preparing for Yew.rs course - Livestream VOD 2022-02-25
2022-03-04Experimenting with Twitch chat libraries in Rust - Livestream VOD 2022-02-24
2022-03-03Experimenting with Twitch chat libraries in Rust - Livestream VOD 2022-02-24
2022-03-02Preparing for Yew.rs course - Livestream VOD 2022-02-24
2022-01-23Mentor chat - DDD and programming
2021-12-28Digital Christmas card with Yew and Rust day 3
2021-12-27Digital Christmas card with Yew and Rust day 2
2021-12-26Digital Christmas card with Yew and Rust day 1
2021-12-21Setting up Docker for development
2021-12-13Returning JSON and errors in Rocket.rs
2021-12-12Can we create a Twitch Extension in Yew? (it doesn't work out)
2021-12-11Planning a Brooks Builds point system while playing with Xilbe
2021-11-30Logging in to Hasura using Rust - Exploring GraphQL with Postgres using Hasura part 7
2021-11-29Hasura and Auth - Exploring GraphQL with Postgres using Hasura part 6
2021-11-23Mutations and Auth - Exploring GraphQL with Postgres using Hasura part 5
2021-11-16Re-setting up Hasura - Exploring GraphQL with Postgres using Hasura part 4
2021-11-15Re-setting up Hasura - Exploring GraphQL with Postgres using Hasura part 3
2021-11-09Setting up Hasura- Exploring GraphQL with Postgres using Hasura part 2
2021-11-08Setting up PostgreSQL - Exploring GraphQL with Postgres using Hasura part 1
2021-11-01Live Stream - Deep Diving into the Rust std lib part 13



Tags:
Rust
Rocket
API
JSON