Commit graph

68 commits

Author SHA1 Message Date
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
3e11390e42 📝 Update README
Co-authored-by: Harald Giskegjerde Nilsen <harald_998@hotmail.com>
2023-09-15 09:52:49 +02:00
Sindre Kjelsrud
0bc914a40a 📝 Update README with new taskdescription
Co-authored-by: Harald Giskegjerde Nilsen <harald_998@hotmail.com>
2023-09-15 09:49:43 +02:00
Sid
b03cd03b33
🔀 Merge pull request #1 from SindreKjelsrud/QueryParams
Query params
2023-09-15 08:37:18 +02:00
SindreKjelsrud
731a877c4f Merge branch 'main' into QueryParams 2023-09-15 08:35:31 +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
Sindre Kjelsrud
cd2dbd6eee 🙈 update gitignore for backend
Co-authored-by: haraldnilsen <harald_998@hotmail.com>
2023-09-13 09:35:02 +02:00
Sid
52993a6a27
Merge branch 'main' into QueryParams 2023-09-13 08:39:45 +02:00
Sindre Kjelsrud
49144b1cc1 🚧 pagination funker, men ikke år/type
Co-authored-by: haraldnilsen <harald_998@hotmail.com>
2023-09-12 14:44:08 +02:00
haraldnilsen
a4c06834e4 🚧 back to working query params
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-09-12 13:36:43 +02:00
haraldnilsen
20aaef67d7 Working form submission with query params
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-09-12 12:04:41 +02:00
haraldnilsen
cd63407d03 working query params from url - not form
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-09-12 11:53:12 +02:00
Sindre Kjelsrud
18c85a662a 🚧 prøver å gjøre queryparams på nytt
Co-authored-by: haraldnilsen <harald_998@hotmail.com>
2023-09-12 11:10:57 +02:00
haraldnilsen
b60f59a48e 🚧 WIP query params
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-09-12 09:39:11 +02:00
haraldnilsen
cc2979bace 🚧 still working on query params
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-09-11 13:26:43 +02:00
Sindre Kjelsrud
a87cfe4d7b 🚧 still WIP on query params
Co-authored-by: haraldnilsen <harald_998@hotmail.com>
2023-09-11 11:48:27 +02:00
haraldnilsen
8648d58771 🚧 working on working query params
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-09-11 10:00:48 +02:00
haraldnilsen
6341339174 💄 fixed form styling
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-09-06 11:14:50 +02:00
haraldnilsen
373bc58bcc 🚸 better user experience before searching movie
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-09-06 11:09:23 +02:00
haraldnilsen
ca73d10408 📱 fixed responsiveness
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-09-06 10:53:59 +02:00
haraldnilsen
8abc9dd13e 💄 added svg to headers and fixed styling of table
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-09-06 10:50:19 +02:00
Sindre Kjelsrud
f293734490 ♻️ componentization of objects
Co-authored-by: haraldnilsen <harald_998@hotmail.com>
2023-09-06 07:56:46 +02:00
Sindre Kjelsrud
51a192ccba sorting by Title/Year implemented
Co-authored-by: haraldnilsen <harald_998@hotmail.com>
2023-09-06 07:33:28 +02:00
Sindre Kjelsrud
33ad71c460 💄 movieform styled better
Co-authored-by: haraldnilsen <harald_998@hotmail.com>
2023-09-06 06:58:41 +02:00
haraldnilsen
db6b29b7d2 ♻️ refactored movieform
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-09-05 17:31:22 +02:00
haraldnilsen
42fd4ee7aa modal-feature for movies and possibility to search for movies
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-09-05 17:21:39 +02:00
haraldnilsen
ffe520b94d 🚧 working on form
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-09-05 17:07:23 +02:00
haraldnilsen
bf107bd256 💄 cursor-pointer to table row
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-09-05 16:25:10 +02:00
haraldnilsen
431e1bd472 modal showing for each movie
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-09-05 15:54:36 +02:00
haraldnilsen
882df70ce5 💄 small padding adjustments
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-09-05 14:27:05 +02:00