Skip to content

Commit c9e2ac4

Browse files
ShadyDLEGKangarooGompel,Sverre S. vanHeesakkers,Aron A.P.H.MAron Heesakkers
authored
Develop (#17)
* Task/#257 controller skeleton * Task/#263 koppeling pakket service * cors (#5) * dockerfile added local file * Add license (#6) * Update README.md * Create LICENSE * Update README.md Co-authored-by: Heesakkers,Aron A.P.H.M <aron.heesakkers@student.fontys.nl> * Build (#11) Co-authored-by: Aron Heesakkers <aron.heesakkers@via.nl> * Hardcoded values to appsettings (#12) Co-authored-by: Aron Heesakkers <aron.heesakkers@via.nl> * Update README.md (#13) * Develop (#7) * Task/#257 controller skeleton * Task/#263 koppeling pakket service * cors (#5) * dockerfile added local file * Add license (#6) * Update README.md * Create LICENSE * Update README.md Co-authored-by: Heesakkers,Aron A.P.H.M <aron.heesakkers@student.fontys.nl> Co-authored-by: Wieling,Kevin C.F.J <k.wieling@student.fontys.nl> Co-authored-by: Gompel,Sverre S. van <sverre.vangompel@student.fontys.nl> Co-authored-by: Heesakkers,Aron A.P.H.M <aron.heesakkers@student.fontys.nl> Co-authored-by: EGKangaroo <EGKangaroo@yahoo.com> * Update README.md Co-authored-by: Wieling,Kevin C.F.J <k.wieling@student.fontys.nl> Co-authored-by: Gompel,Sverre S. van <sverre.vangompel@student.fontys.nl> Co-authored-by: Heesakkers,Aron A.P.H.M <aron.heesakkers@student.fontys.nl> Co-authored-by: EGKangaroo <EGKangaroo@yahoo.com> * Update README.md * Gateway fix (#16) * Changes * gateway fix, same request model as package service * created at action bug fixed Co-authored-by: Aron Heesakkers <aron.heesakkers@via.nl> Co-authored-by: EGKangaroo <EGKangaroo@yahoo.com> Co-authored-by: Wieling,Kevin C.F.J <k.wieling@student.fontys.nl> Co-authored-by: Gompel,Sverre S. van <sverre.vangompel@student.fontys.nl> Co-authored-by: Heesakkers,Aron A.P.H.M <aron.heesakkers@student.fontys.nl> Co-authored-by: EGKangaroo <EGKangaroo@yahoo.com> Co-authored-by: Aron Heesakkers <aron.heesakkers@via.nl>
1 parent 78fce12 commit c9e2ac4

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

Controllers/PackageController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public async Task<ActionResult<PackageResponseModel>> Post(PackageRequestModel r
126126
{
127127
PackageServiceModel model = await response.GetJsonAsync<PackageServiceModel>();
128128
PackageResponseModel responseModel = ServiceToResponseModelConverter.ConvertPackage(model);
129-
return CreatedAtAction("GetPackage", new { id = model.Id }, responseModel);
129+
return CreatedAtAction("Post", responseModel);
130130
}
131131
}
132132

Models/RequestModels/PackageRequestModel.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ namespace api_gateway.Models.RequestModels
77
{
88
public class PackageRequestModel
99
{
10-
public int ReceiverId { get; set; }
11-
public int CollectionPointId { get; set; }
12-
public int TrackAndTraceId { get; set; }
1310
public string Sender { get; set; }
11+
public string ReceiverId { get; set; }
1412
public string Name { get; set; }
13+
public string CollectionPointId { get; set; }
1514
}
1615
}

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ services:
33
pkg:
44
build:
55
context: .
6-
dockerfile: Dockerfile
6+
dockerfile: Dockerfile.local
77
container_name: gateway
88
ports:
99
- "0.0.0.0:8123:8123"

0 commit comments

Comments
 (0)