0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 9
click for more info
No active XP Potion
Accept a Quest
Login to submit answers
We need a way to retrieve all the chirps from the database. Later, we'll add sorting and filtering functionality, but you can think of this as a very basic version of an endpoint that might serve a timeline of chirps.
[
{
"id": "94b7e44c-3604-42e3-bef7-ebfcc3efff8f",
"created_at": "2021-01-01T00:00:00Z",
"updated_at": "2021-01-01T00:00:00Z",
"body": "Yo fam this feast is lit ong",
"user_id": "123e4567-e89b-12d3-a456-426614174000"
},
{
"id": "f0f87ec2-a8b5-48cc-b66a-a85ce7c7b862",
"created_at": "2022-01-01T00:00:00Z",
"updated_at": "2023-01-01T00:00:00Z",
"body": "What's good king?",
"user_id": "123e4567-e89b-12d3-a456-426614174000"
}
]
Run and submit the CLI tests.
The Boot.dev CLI requires you to be signed in to submit your solution!
Copy/paste one of the following commands into your terminal:
Run
bootdev run 341b80d4-556f-4c5b-8afc-ffd12d5238c2
Submit
bootdev run 341b80d4-556f-4c5b-8afc-ffd12d5238c2 -s
To run and submit the tests for this lesson, you must have an active Boot.dev membership
Become a member to view solution
Using the Bootdev CLI
The Bootdev CLI is the only way to submit your solution for this type of lesson. We need to be able to run commands in your environment to verify your solution.
You can install it here. It's a Go program hosted on GitHub, so you'll need Go installed as well. Instructions are on the GitHub page.