- Go 1.22
- PostgreSQL
Run the cmd/server/main.go
. The server will listen on port 8080.
Use these payloads for testing:
- POST /directors
{
"data": {
"type": "directors",
"attributes": {
"name": "Alex Garland",
"birthdate": 12502800
}
}
}
- POST /movies
{
"data": {
"type": "movies",
"attributes": {
"title": "Civil War",
"genre": "Action",
"releaseYear": 2024
},
"relationships": {
"director": {
"data": {
"type": "directors",
"id": "<director-id>"
}
}
}
}
}