Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Development to Main #149

Merged
merged 235 commits into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
Show all changes
235 commits
Select commit Hold shift + click to select a range
b31d21c
feature(Transfers): create TransferStatus enum
Sharif-C Dec 1, 2024
c309e1b
feature(Transfers): create Transfer model
Sharif-C Dec 1, 2024
c562ec6
docs(Transfers): added required fields to erd
Sharif-C Dec 1, 2024
ce1349b
feature(Transfers): create model TransferItem
Sharif-C Dec 1, 2024
2995a9c
feature(Transfers): relate Item model with TransferItems
Sharif-C Dec 1, 2024
660c7a2
feature(Transfers): relate Location model with Transfers
Sharif-C Dec 1, 2024
954c30f
feature(Transfers): create migration transfers and transfer items wit…
Sharif-C Dec 1, 2024
8b3a384
chore: remove not existing class Client
Sharif-C Dec 1, 2024
3b34dec
fix(Shipments): set minimum item amount in validation
Sharif-C Dec 1, 2024
071753c
refactor(Transfers): improve TransferStatus enum null check
Sharif-C Dec 1, 2024
f157639
refactor(TransferItems): improve minimum amount setter
Sharif-C Dec 1, 2024
39e2281
refactor(Transfers): TransferItems migration
Sharif-C Dec 1, 2024
0f60a55
feature(Transfers): create DTO
Sharif-C Dec 1, 2024
4766c6f
feature(Transfers): create validator
Sharif-C Dec 1, 2024
c28ec3a
feature(Transfers): implement validator and provider in Program.cs
Sharif-C Dec 1, 2024
135f7c4
feature(Transfers): create provider
Sharif-C Dec 1, 2024
c08d200
feature(Transfers): create controller
Sharif-C Dec 1, 2024
edfd540
chore(Transfers): create rest file
Sharif-C Dec 1, 2024
963c9ee
feat(warehouse): warehouse update function created
AlperenBaytimur Dec 2, 2024
d0d6c1f
fix(warehouse) the tests per endpoint is added, so in future test run…
AlperenBaytimur Dec 2, 2024
59799ef
feature(Item_lines): GetAll function added to ItemTypesProvider
ahmetDev7 Dec 2, 2024
e37472d
feature(Item_lines): ShowAll function added to ItemTypesController
ahmetDev7 Dec 2, 2024
bf90aed
feature(item_lines): Created .REST file for get all item types
ahmetDev7 Dec 2, 2024
0284b06
Merge branch 'development' into INFSCP01-8-feature-create-transfer
Sharif-C Dec 2, 2024
e284685
feature(item_types): Added GetById functionality to ItemTypesProvider
ahmetDev7 Dec 2, 2024
34e18f4
feature(item_types): Added ShowSingle functionality to ItemTypesContr…
ahmetDev7 Dec 2, 2024
8a42621
feature(item_types): Added .REST file endpoints for get by id for /it…
ahmetDev7 Dec 2, 2024
c819feb
feature(client): Get All function in clientsProvider
simosbe3 Dec 2, 2024
76970c3
feature(cleints): Show All function in ClientsController
simosbe3 Dec 2, 2024
ea5bbb5
feature(client): Added .rest file with /clients endpoint get all
simosbe3 Dec 2, 2024
9e2460c
feature(client): Get by id function in ClientsProvider
simosbe3 Dec 2, 2024
d6f11f4
feature(cleints): Show Single function in ClientsController
simosbe3 Dec 2, 2024
aa8bfcd
feature(client): Added .rest file with /clients endpoint get by id
simosbe3 Dec 2, 2024
6f2d57e
fix(warehouse): small fix based on review in the warehouse provider
AlperenBaytimur Dec 2, 2024
b5a3dc2
Merge pull request #101 from ahmetDev7/INFSCP01-119-feature-client-ge…
ahmetDev7 Dec 2, 2024
e48456c
feature(Inventories): implement get all controller provider and rest …
Sharif-C Dec 2, 2024
c85a202
Merge pull request #105 from ahmetDev7/INFSCP01-19-feature-get-all-in…
ahmetDev7 Dec 2, 2024
ced72a8
feature(Inventories): implement get single inventory by id controller…
Sharif-C Dec 2, 2024
c931f7b
Merge pull request #106 from ahmetDev7/INFSCP01-74-feature-get-invent…
ahmetDev7 Dec 2, 2024
7dbbcac
Merge pull request #98 from ahmetDev7/INFSCP01-28-feature-get-all-ite…
Sharif-C Dec 2, 2024
21240c7
Merge branch 'development' into INFSCP01-68-feature-get-item-type-by-id
ahmetDev7 Dec 2, 2024
79b1ba8
Merge pull request #99 from ahmetDev7/INFSCP01-68-feature-get-item-ty…
Sharif-C Dec 2, 2024
d0e59f8
feature(item_types): Added Update functionality to ItemTypesProvider
ahmetDev7 Dec 2, 2024
ffb00af
feature(item_types): Added Update functionality to ItemTypesController
ahmetDev7 Dec 2, 2024
55d50c0
feature(item_types): Added .REST file with UPDATE request for /itemtypes
ahmetDev7 Dec 2, 2024
3753c19
Merge branch 'development' into INFSCP01-29-feature-update-item-type
ahmetDev7 Dec 2, 2024
983c5fd
feature(item_types): Added Delete functionality to ItemTypesProvider
ahmetDev7 Dec 2, 2024
78b7095
feature(item_types): Added Delete functionality to ItemTypesController
ahmetDev7 Dec 2, 2024
52b8114
feature(item_types): Added DELETE request to .REST for /itemtypes
ahmetDev7 Dec 2, 2024
47895d4
feature(Inventories): add migration on inventory delete cascade locat…
Sharif-C Dec 2, 2024
6e0c35a
feature(item_types): Added GetRelatedItemsById functionality to ItemT…
ahmetDev7 Dec 2, 2024
42502cf
feature(item_types): Added ShowRelatedItems functionality to ItemType…
ahmetDev7 Dec 2, 2024
b95bc8e
feature(item_types): Added GET ALL ITEMS FROM ITEM TYPES endpoint to …
ahmetDev7 Dec 2, 2024
5b47a29
feature(Inventories): implement delete action with controller, provid…
Sharif-C Dec 2, 2024
c45a20a
Merge pull request #108 from ahmetDev7/INFSCP01-30-feature-delete-ite…
Sharif-C Dec 2, 2024
9ee90aa
Merge pull request #110 from ahmetDev7/INFSCP01-21-feature-delete-inv…
ahmetDev7 Dec 2, 2024
1ff6f7c
Merge branch 'development' into INFSCP01-29-feature-update-item-type
ahmetDev7 Dec 2, 2024
2dab310
Merge pull request #107 from ahmetDev7/INFSCP01-29-feature-update-ite…
Sharif-C Dec 2, 2024
8d6ebe2
Merge branch 'development' into INFSCP01-70-get-all-items-of-item-type
ahmetDev7 Dec 2, 2024
7aeceea
Merge pull request #109 from ahmetDev7/INFSCP01-70-get-all-items-of-i…
Sharif-C Dec 2, 2024
4dab807
hotfix(ItemTypesProvider): foundItemType was not returned in Update f…
ahmetDev7 Dec 2, 2024
cee9209
Merge pull request #111 from ahmetDev7/hotfix/update_itemtypesprovider
Sharif-C Dec 2, 2024
385802e
feature(item_lines): Added GetRelatedItemsById functionality to ItemL…
ahmetDev7 Dec 2, 2024
f8cce4b
feature(item_lines): Added ShowRelatedItems functionality to ItemLine…
ahmetDev7 Dec 2, 2024
ebca2e8
feature(item_lines): Added GET ALL ITEMS from Item Lines request in .…
ahmetDev7 Dec 2, 2024
de6154e
Merge remote-tracking branch 'origin/development' into INFSCP01-35-fe…
AlperenBaytimur Dec 3, 2024
202f939
Merge pull request #112 from ahmetDev7/INFSCP01-59-get-all-items-from…
Sharif-C Dec 3, 2024
319d041
feature(item): Added Update functionality to ItemsProvider
ahmetDev7 Dec 3, 2024
12f05ab
feature(item): Added Update functionality to ItemsController
ahmetDev7 Dec 3, 2024
fee62f6
fix(warehouse): added some extra .rest file test entries. so you can …
AlperenBaytimur Dec 3, 2024
c0a6810
feature(item): Added PUT endpoint to .REST file for /items/{id}
ahmetDev7 Dec 3, 2024
35f3d35
Merge pull request #113 from ahmetDev7/INFSCP01-33-feature-item-update
Sharif-C Dec 3, 2024
ce950c0
Merge remote-tracking branch 'origin/development' into INFSCP01-8-fea…
Sharif-C Dec 3, 2024
01b7dbd
Create dotnet.yml (CI) for building and testing
ahmetDev7 Dec 3, 2024
52e444f
chore: Update dotnet.yml
ahmetDev7 Dec 3, 2024
8150f33
Merge pull request #115 from ahmetDev7/chore-cherry-picked-github-wor…
Sharif-C Dec 3, 2024
4b8316e
chore(Transfers): rename provider file name
Sharif-C Dec 3, 2024
02f79b1
chore(Transfers): add strict validation rules
Sharif-C Dec 3, 2024
1cdb524
Merge remote-tracking branch 'origin/development' into INFSCP01-8-fea…
Sharif-C Dec 3, 2024
73f2192
Revert AppDbContextModelSnapshot to be inline with development
Sharif-C Dec 3, 2024
19ee429
feature(client): update by id function in ClientsProvider
simosbe3 Dec 3, 2024
a608cf7
refactor(Transfers): migrations built upon development with nullable …
Sharif-C Dec 3, 2024
1e3c9bb
feature(cleints): Update function in ClientsController
simosbe3 Dec 3, 2024
30ce56a
feature(client): Added .rest file with /clients endpoint update by id
simosbe3 Dec 3, 2024
9466ba2
refactor(Transfers): add validation rules if transfer is to or from dock
Sharif-C Dec 3, 2024
ca5e242
feature(Inventories): implement controller, provider and rest file to…
Sharif-C Dec 3, 2024
8986c18
Merge pull request #117 from ahmetDev7/INFSCP01-186-feature-get-inven…
Sidim9 Dec 3, 2024
554ac71
feature(Inventories): implement controller and rest file to get inven…
Sharif-C Dec 3, 2024
7d39cfa
feature(client): Get order by id function in ClientsProvider
simosbe3 Dec 3, 2024
ac27fc9
feature(cleints): Show orders by id function in ClientsController
simosbe3 Dec 3, 2024
2399e1d
Merge pull request #118 from ahmetDev7/INFSCP01-187-feature-get-inven…
Sharif-C Dec 3, 2024
71d2756
fix(Warehouse): remove the word 'all' from endpoint
AlperenBaytimur Dec 3, 2024
4e38015
Merge pull request #119 from ahmetDev7/INFSCP01-175-fix-warehouse-get…
ahmetDev7 Dec 3, 2024
97b48c2
fix(Warehouse): reponse formatting for post, get by id, get all and d…
AlperenBaytimur Dec 3, 2024
ea340eb
Merge pull request #120 from ahmetDev7/INFSCP01-176-fix-warehouse-get…
ahmetDev7 Dec 3, 2024
5bfd20b
fix(warehouse): the response for get locations for specific warehouse…
AlperenBaytimur Dec 3, 2024
95a03ba
Merge pull request #121 from ahmetDev7/INFSCP01-177-fix-get-warehouse…
ahmetDev7 Dec 4, 2024
a0ab93c
Merge remote-tracking branch 'origin/development' into INFSCP01-35-fe…
AlperenBaytimur Dec 4, 2024
ae46496
Merge branch 'development' into INFSCP01-120-feature-client-get-by-id
Sidim9 Dec 4, 2024
0ad295e
fix(Clients): one response format for, show-all, show-single and crea…
simosbe3 Dec 4, 2024
4570a88
Merge pull request #103 from ahmetDev7/INFSCP01-120-feature-client-ge…
Sharif-C Dec 4, 2024
dfdc524
Merge pull request #122 from ahmetDev7/INFSCP01-121-1-feature-client-…
Sharif-C Dec 4, 2024
8786146
Merge branch 'development' into INFSCP01-124-feature-update-client
Sidim9 Dec 9, 2024
fa4910f
chore(List Api Keys): Removed API keys from appsettings.json
ahmetDev7 Dec 9, 2024
7be3180
feature(List API Keys): Updated ValidateLifetime (JWT) to false in Pr…
ahmetDev7 Dec 9, 2024
7e56d16
feature(List API Keys): Updated AuthController & TokenService for mul…
ahmetDev7 Dec 9, 2024
81b175f
feature(List API Keys): Created apikeys.md with list of API keys per …
ahmetDev7 Dec 9, 2024
c821669
feature(contact): create function in ContactsController
simosbe3 Dec 9, 2024
e8881b1
feature(contact): Added .rest file with /contacts endpoint create
simosbe3 Dec 9, 2024
4a8f600
feature(warehouse): warehouse update is created and works properly wi…
AlperenBaytimur Dec 9, 2024
1658ace
Merge remote-tracking branch 'origin/development' into INFSCP01-35-fe…
AlperenBaytimur Dec 9, 2024
63ad048
Update ContactsController.cs
Sidim9 Dec 9, 2024
aacd922
feature(address): create function in AddressesController
simosbe3 Dec 9, 2024
768e572
feature(address): Added .rest file with /addresses endpoint create
simosbe3 Dec 9, 2024
a122dc5
feature(contact): create function in AddressProvider
simosbe3 Dec 9, 2024
084a184
Merge pull request #124 from ahmetDev7/INFSCP01-272-feature-create-co…
Sidim9 Dec 9, 2024
31ebad5
Merge remote-tracking branch 'origin/development' into INFSCP01-35-fe…
AlperenBaytimur Dec 9, 2024
e9ae926
chore: gitignore .idea and .vs folders
Sharif-C Dec 9, 2024
8620f68
docs: version 3 of erd based on feedback and new features
Sharif-C Dec 9, 2024
f95bbb7
docs: added created_at attribute to ERD for items, shipments and orders
Sharif-C Dec 9, 2024
a125762
Update AddressesController.cs
Sidim9 Dec 10, 2024
929161c
fix(client): the correct name for the response
simosbe3 Dec 10, 2024
4542b91
fix(client): the correct name for the response in ClientsController a…
simosbe3 Dec 10, 2024
38421c2
Merge branch 'INFSCP01-124-feature-update-client' of https://github.c…
simosbe3 Dec 10, 2024
4d99448
docs: update erd based on team feedback
Sharif-C Dec 10, 2024
ee9fe7b
feature(contact): Added Update functionality to ContactProvider
simosbe3 Dec 10, 2024
8a89ab6
feature(contact): Added Update functionality to ContactController
simosbe3 Dec 10, 2024
27157e0
feature(contact): Added PUT endpoint to .REST file for /contacts/{id}
simosbe3 Dec 10, 2024
b8ed9a4
feature(contact): removed imports what we are not using in Contactpro…
simosbe3 Dec 10, 2024
8a5e625
feature(contact): Show All function in ContactsController
simosbe3 Dec 10, 2024
31007af
feature(contact): Added .rest file with /contact endpoint get all
simosbe3 Dec 10, 2024
bb657cc
feature(contact): Added GetById functionality to ContactsControllere
simosbe3 Dec 10, 2024
4e27ca6
feature(contact): Added Get endpoint to .REST file for /contacts/id
simosbe3 Dec 10, 2024
2497065
test(location): I created an unit test to see if the create function …
AlperenBaytimur Dec 10, 2024
2e1b8f7
chore(location): deleted an unused using
AlperenBaytimur Dec 10, 2024
bf76b32
build: add package EFCire.BulkExtensions
Sharif-C Dec 11, 2024
51a1397
feature(Items): overload method GetById in provider
Sharif-C Dec 11, 2024
c8a4923
fix(Locations): on method FillOnHandAmount update timestamp
Sharif-C Dec 11, 2024
1c5da91
feature(Inventories): implement PUT endpoint
Sharif-C Dec 11, 2024
e7ded5a
Merge pull request #116 from ahmetDev7/INFSCP01-124-feature-update-cl…
AlperenBaytimur Dec 11, 2024
bcad2e3
Merge remote-tracking branch 'origin/development' into INFSCP01-278-f…
simosbe3 Dec 11, 2024
5e0980c
Merge remote-tracking branch 'origin/development' into INFSCP01-297-U…
AlperenBaytimur Dec 11, 2024
b97cdad
Merge pull request #126 from ahmetDev7/INFSCP01-278-feature-create-ad…
AlperenBaytimur Dec 11, 2024
5ba9995
Merge pull request #127 from ahmetDev7/INFSCP01-267-docs-updated-erd
Sidim9 Dec 11, 2024
0bd8fed
Merge remote-tracking branch 'origin/development' into INFSCP01-297-U…
AlperenBaytimur Dec 11, 2024
50507d7
chore: load security_key via env
Sharif-C Dec 11, 2024
b130fa8
Merge pull request #128 from ahmetDev7/INFSCP01-273-feature-update-co…
AlperenBaytimur Dec 11, 2024
81aa1f2
Merge branch 'development' into INFSCP01-275-feature-get-all-contact
Sidim9 Dec 11, 2024
367af9a
Merge pull request #123 from ahmetDev7/INFSCP01-289-feature-list-api-…
ahmetDev7 Dec 11, 2024
6388fe6
Merge pull request #129 from ahmetDev7/INFSCP01-275-feature-get-all-c…
AlperenBaytimur Dec 11, 2024
39ab262
Merge pull request #132 from ahmetDev7/INFSCP01-20-feature-update-inv…
ahmetDev7 Dec 11, 2024
7afccb8
Merge branch 'development' into INFSCP01-271-feature-contact-get-by-id
Sidim9 Dec 11, 2024
0fefcef
Merge pull request #130 from ahmetDev7/INFSCP01-271-feature-contact-g…
AlperenBaytimur Dec 11, 2024
0a24f48
Merge remote-tracking branch 'origin/development' into INFSCP01-297-U…
AlperenBaytimur Dec 11, 2024
bde984e
feature(address): Added Update functionality to AddressProvider
simosbe3 Dec 11, 2024
b9f097b
feature(address): Added Update functionality to AddressesController
simosbe3 Dec 11, 2024
1f0699e
feature(address): Added PUT endpoint to .REST file for /Addresses/{id}
simosbe3 Dec 11, 2024
bc7d19f
docs: make log old and new value nullable
Sharif-C Dec 11, 2024
945a80d
Merge remote-tracking branch 'origin/development' into INFSCP01-8-fea…
Sharif-C Dec 11, 2024
b6bda0e
Merge pull request #133 from ahmetDev7/INFSCP01-279-feature-update-ad…
AlperenBaytimur Dec 12, 2024
00b8315
feature(address): Added GetById functionality to AddressesControllere
simosbe3 Dec 12, 2024
b2d8f5d
feature(address): Added Get endpoint to .REST file for /addresses/id
simosbe3 Dec 12, 2024
0c68614
Merge pull request #134 from ahmetDev7/fix-docs-erd-v3
Sharif-C Dec 12, 2024
62d3451
Merge remote-tracking branch 'origin/development' into INFSCP01-277-f…
simosbe3 Dec 12, 2024
81af957
feature(address): Added ShowAll functionality to AddressesControllere
simosbe3 Dec 12, 2024
8a9ae0e
feature(address): Added Get endpoint to .REST file for /addresses
simosbe3 Dec 12, 2024
e4ae170
Delete api/REST/Clients/Addreses.rest
Sidim9 Dec 12, 2024
b8a636a
Merge pull request #135 from ahmetDev7/INFSCP01-277-feature-get-by-id…
AlperenBaytimur Dec 12, 2024
963c670
Merge remote-tracking branch 'origin/development' into INFSCP01-35-re…
Sharif-C Dec 12, 2024
51bb6b9
Merge branch 'development' into INFSCP01-282-get-all-addresses
Sidim9 Dec 12, 2024
f736b9a
Merge pull request #136 from ahmetDev7/INFSCP01-282-get-all-addresses
AlperenBaytimur Dec 12, 2024
dbdec64
fix(Warehouse): make contactId and addressId required in db
Sharif-C Dec 12, 2024
bb8c697
refactor(Warehouse): apply code convention to controller
Sharif-C Dec 12, 2024
429836b
fix(Inventories): rethrow violation
Sharif-C Dec 12, 2024
df8d5ac
feature: add optional parameter responseStatusCode to ApiFlowException
Sharif-C Dec 12, 2024
f77057e
refactor(Warehouse): implement code and naming conventions for Wareho…
Sharif-C Dec 12, 2024
5790f00
Merge pull request #137 from ahmetDev7/INFSCP01-35-refactor-warehouse
AlperenBaytimur Dec 12, 2024
b890376
Merge remote-tracking branch 'origin/development' into INFSCP01-8-fea…
Sharif-C Dec 12, 2024
565698c
feature(address): Added Delete functionality to AddressesControllere
simosbe3 Dec 12, 2024
943cdde
feature(address): Added Delete functionality to AddressesProvider
simosbe3 Dec 12, 2024
7a4990c
feature(address): Added Delete check functionality to AddressValidator
simosbe3 Dec 12, 2024
7469f76
feature(address): Added Delete endpoint to .REST file for /addresses
simosbe3 Dec 12, 2024
32c6865
feature(Docks): add migration relating to warehouse with docks
Sharif-C Dec 12, 2024
14220a9
feature:(Docks): after warehouse create add dock to warehouse with Do…
Sharif-C Dec 12, 2024
766c549
feature(Warehouse): autoload dock with warehouse model
Sharif-C Dec 12, 2024
b3925ca
feature(Locations): on method GetById in LocationsProvider optional l…
Sharif-C Dec 12, 2024
ca97e98
feature(Docks): add const capacity to dock model
Sharif-C Dec 12, 2024
a928600
fix(Warehouses): provider set SaveToDB function before linking to dock
Sharif-C Dec 12, 2024
dd8f1cf
feature(Warehouses): add dock to model
Sharif-C Dec 12, 2024
1661f2d
fix(Transfers): remove TransferStatus from RequestDTO
Sharif-C Dec 12, 2024
0c20d23
feature(Docks): add response DTO
Sharif-C Dec 12, 2024
020e87e
feature(Transfers)!: implement create, getById and commit with contro…
Sharif-C Dec 12, 2024
fd5f213
Merge pull request #83 from ahmetDev7/INFSCP01-8-feature-create-transfer
Sidim9 Dec 12, 2024
e4b1309
Merge remote-tracking branch 'origin/development' into INFSCP01-297-U…
AlperenBaytimur Dec 13, 2024
b4d3861
test(UnitTests): I made a unit test that simullates the behaviour of …
AlperenBaytimur Dec 13, 2024
bd217ee
test(TestLocations): I made a unit test that checks if the controller…
AlperenBaytimur Dec 13, 2024
a5c5a64
test(TestLocations): placed the instantiation of the controller at th…
AlperenBaytimur Dec 13, 2024
43e0b31
chore(TestLocations): changed an unneccessary var to an OkObjectResult
AlperenBaytimur Dec 13, 2024
90e5f7a
Merge pull request #142 from ahmetDev7/INFSCP01-297-Unit-test-locatio…
Sidim9 Dec 13, 2024
1aae6c4
Merge remote-tracking branch 'origin/development' into INFSCP01-280-f…
AlperenBaytimur Dec 13, 2024
f448987
Merge pull request #138 from ahmetDev7/INFSCP01-280-feature-delete-ad…
AlperenBaytimur Dec 13, 2024
e8b2240
chore: rename all rest files based on naming convention of the endpoints
Sharif-C Dec 13, 2024
f8e8fd0
feature(Transfers): Get all transfers implementation in controller, p…
Sharif-C Dec 13, 2024
c9995f5
feature(Transfers): Get items from transfer implementation in control…
Sharif-C Dec 13, 2024
76d224b
Merge pull request #143 from ahmetDev7/INFSCP01-12-feature-get-all-tr…
Sidim9 Dec 14, 2024
3c3171d
docs: UML Class diagram, Shipment and Order state diagram
Sharif-C Dec 14, 2024
5a1a7ec
Merge pull request #145 from ahmetDev7/INFSCP01-266-docs-uml
Sidim9 Dec 14, 2024
dcf9ec3
Merge branch 'development' into INFSCP01-46-feature-get-items-from-tr…
Sharif-C Dec 15, 2024
3099f48
feature(Transfers): delete transfer implementation in controller, pro…
Sharif-C Dec 15, 2024
8ba273c
Merge pull request #146 from ahmetDev7/INFSCP01-17-feature-delete-tra…
Sidim9 Dec 15, 2024
120364a
Merge pull request #144 from ahmetDev7/INFSCP01-46-feature-get-items-…
Sidim9 Dec 15, 2024
5fe6141
feature: split github actions workflows
Sharif-C Dec 16, 2024
521fed9
feature: Github Action linting verify no changes
Sharif-C Dec 16, 2024
c4c28f2
fix: lint result no such file in directory
Sharif-C Dec 16, 2024
7eb0594
fix: lint result change directory
Sharif-C Dec 16, 2024
b96ed46
fix: lint result change directory
Sharif-C Dec 16, 2024
1ed2661
fix: remove restore from test job and lint
Sharif-C Dec 16, 2024
1594c84
fix: remove temp changes
Sharif-C Dec 16, 2024
a1acf5d
fix: move lint results to api folder
Sharif-C Dec 16, 2024
8a5be52
fix: github workflow change lint results path
Sharif-C Dec 16, 2024
5f5a748
feature: store linting result in artifact
Sharif-C Dec 16, 2024
b129ffe
fix: Github action continue on error
Sharif-C Dec 16, 2024
a44806b
fix: save artifact linting txt always
Sharif-C Dec 16, 2024
cfa3b5f
fix: format files with dotnet format
Sharif-C Dec 16, 2024
92ee4b6
feature: Github artifact retention days
Sharif-C Dec 16, 2024
72148d0
feature(Github Actions): Add Upload Artifact for build results in .tx…
ahmetDev7 Dec 16, 2024
6985dd1
feature: Add build-results.txt file
ahmetDev7 Dec 16, 2024
2df9dd2
test: Malformed Program.cs file for build errors
ahmetDev7 Dec 16, 2024
675d65e
test: Fixed Malformed Program.cs file for build error
ahmetDev7 Dec 16, 2024
fad1bcc
fix: Changed if always to if failure for Lint Code job
ahmetDev7 Dec 16, 2024
33ff74b
Revert "fix: format files with dotnet format"
Sharif-C Dec 16, 2024
10a0ef1
Merge branch 'development' into INFSCP01-249-feature-split-workflows
Sharif-C Dec 16, 2024
815c06e
Merge pull request #148 from ahmetDev7/INFSCP01-249-feature-split-wor…
ahmetDev7 Dec 16, 2024
787e2cb
fix: format all documents for code linting action
Sharif-C Dec 16, 2024
2183e12
Merge pull request #150 from ahmetDev7/fix-format-all-files
ahmetDev7 Dec 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions api/Controllers/AddressesController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,29 @@ public IActionResult Update(Guid id, [FromBody] AddressRequest req)
}
});
}

[HttpGet("{id}")]
public IActionResult ShowSingle(Guid id)
{
Address? foundAddress = _addressProvider.GetById(id);

if (foundAddress == null) throw new ApiFlowException($"Address not found for id '{id}'");

return Ok(new
{
message = "Address found",
new_address = new AddressResponse
{
Id = foundAddress.Id,
Street = foundAddress.Street,
HouseNumber = foundAddress.HouseNumber,
HouseNumberExtension = foundAddress.HouseNumberExtension,
HouseNumberExtensionExtra = foundAddress.HouseNumberExtensionExtra,
ZipCode = foundAddress.ZipCode,
City = foundAddress.City,
Province = foundAddress.Province,
CountryCode = foundAddress.CountryCode
}
});
}
}
3 changes: 3 additions & 0 deletions api/REST/Clients/Addresses.rest
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,7 @@ Content-Type: application/json
"province": "Example Province",
"country_code": "NL"
}
###
### Show Single Id Address
GET http://localhost:5000/api/addresses/b372cf41-44f1-4823-a97c-316fef12ba27
###
Loading