Commit graph

42 commits

Author SHA1 Message Date
haraldnilsen
2270e1c026 error handling and new start.sh-file
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-10-19 09:32:48 +02:00
haraldnilsen
c5c8194fed 🎨 fixed after feedback 2023-10-19 08:51:47 +02:00
haraldnilsen
e7d8ff1e34 🧪 Added a failing test for movieController
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-10-12 13:01:39 +02:00
haraldnilsen
8c1ef192b1 tests for all validators complete
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-10-12 12:20:09 +02:00
haraldnilsen
c599661f3f created the first working test in the project
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-10-12 12:03:34 +02:00
Sindre Kjelsrud
f9b4309072 🐛 Ensure that migrations run
Co-authored-by: haraldnilsen <harald_998@hotmail.com>
2023-10-03 10:56:14 +02:00
haraldnilsen
187c669495 working totalResults and currentPage on the API
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-10-03 10:29:41 +02:00
haraldnilsen
d4b53e9912 🏗️ structured files for testing
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-10-03 10:03:36 +02:00
haraldnilsen
5cfc2653bb migrations get automatically applied when running proj
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-10-03 09:25:38 +02:00
Sindre Kjelsrud
f591abe341 🚧 replacing api in frontend
Co-authored-by: haraldnilsen <harald_998@hotmail.com>
2023-10-02 11:45:08 +02:00
Sindre Kjelsrud
0d363acdcb 🔥 Removed boilerplate-file
Co-authored-by: haraldnilsen <harald_998@hotmail.com>
2023-10-02 10:33:10 +02:00
Sindre Kjelsrud
9364b5cfc4 Can now get all movies from API
Co-authored-by: haraldnilsen <harald_998@hotmail.com>
2023-10-02 10:21:02 +02:00
Sindre Kjelsrud
c0c22c1317 🔨 Add script to start up backend
Co-authored-by: haraldnilsen <harald_998@hotmail.com>
2023-10-02 09:48:11 +02:00
Sindre Kjelsrud
82f2c29748 📝 openapi swagger file finito
Co-authored-by: haraldnilsen <harald_998@hotmail.com>
2023-09-26 10:51:58 +02:00
Sindre Kjelsrud
771d3ef0e6 PUT-endpoint: minigolf is supported
Co-authored-by: haraldnilsen <harald_998@hotmail.com>
2023-09-26 10:25:40 +02:00
Sindre Kjelsrud
4461c9838f DELETE-endpoint: 'Avada Kedavra' to movie!
Co-authored-by: haraldnilsen <harald_998@hotmail.com>
2023-09-26 10:13:32 +02:00
Sindre Kjelsrud
a134a5e376 POST-endpoint in the box
Co-authored-by: haraldnilsen <harald_998@hotmail.com>
2023-09-26 09:47:41 +02:00
haraldnilsen
251d551c3f 🤡 more mock data for the database
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-09-19 16:46:31 +02:00
haraldnilsen
b76bf74b1b working get-endpoint in api!
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-09-19 13:57:44 +02:00
haraldnilsen
0354b7c098 🚧 working on sorting in api
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-09-19 13:53:05 +02:00
haraldnilsen
983a6af41a 🥅 handled input errors in API
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-09-19 13:45:34 +02:00
haraldnilsen
4f063495f2 🦺 added validators for query-params
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-09-19 13:43:21 +02:00
haraldnilsen
d5a587f9bd 📝 created openapi swagger file
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-09-19 13:43:01 +02:00
Sindre Kjelsrud
942154e977 introducing filtering to get
Co-authored-by: haraldnilsen <harald_998@hotmail.com>
2023-09-19 11:58:43 +02:00
Sindre Kjelsrud
a2557d2201 🥅 catching 'No Content' error
Co-authored-by: haraldnilsen <harald_998@hotmail.com>
2023-09-19 11:21:13 +02:00
Sindre Kjelsrud
6ef2a4f8af introducing pagination in the api!
Co-authored-by: haraldnilsen <harald_998@hotmail.com>
2023-09-19 11:14:59 +02:00
haraldnilsen
f2d00947c8 🥅 added error handling for get-endpoint
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-09-19 10:36:13 +02:00
haraldnilsen
c662c48e59 🚧 working on get-endpoint
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-09-19 09:48:59 +02:00
haraldnilsen
f19dda9a42 ♻️ refactored - removed ID from db
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-09-19 09:35:10 +02:00
haraldnilsen
0fdc0e6af5 🗃️ automatically add data to db when running backend
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-09-18 15:23:20 +02:00
haraldnilsen
3392bb55b2 🤡 added id to csv
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-09-18 15:22:30 +02:00
haraldnilsen
07422f665b 🔥 remove migration for inserting data
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-09-18 15:21:50 +02:00
haraldnilsen
54e435883f 🤡 generated mock-data for db
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-09-18 13:52:03 +02:00
haraldnilsen
2ef9843615 🗃️ included migrations for init
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-09-18 13:37:15 +02:00
haraldnilsen
397255519a 🗃️ created movieDB model
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-09-18 12:03:57 +02:00
haraldnilsen
3385b98c6e 🐳 creates server with correct port
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-09-18 12:02:42 +02:00
Sindre Kjelsrud
fb63f20a8d 🏗️ added docker-compose file
Co-authored-by: haraldnilsen <harald_998@hotmail.com>
2023-09-18 09:29:07 +02:00
haraldnilsen
f925b87883 🗃️ created dbcontext
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-09-15 12:11:10 +02:00
haraldnilsen
cc7bb34302 added EF dependencies
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-09-15 10:42:46 +02:00
haraldnilsen
f1455d7ee3 🍱 models for API return-types
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-09-15 09:56:58 +02:00
Sindre Kjelsrud
040c416f14 🧱 added new template for api-endpoint
Co-authored-by: haraldnilsen <harald_998@hotmail.com>
2023-09-13 10:37:53 +02:00
Sindre Kjelsrud
a260cb63b7 🧱 added backend
Co-authored-by: haraldnilsen <harald_998@hotmail.com>
2023-09-13 09:37:55 +02:00