2
0

Update README.

This commit is contained in:
2025-10-28 18:21:21 +01:00
parent cf91281a51
commit b61e6a6cc7

View File

@@ -26,10 +26,10 @@ This exercise is designed to test your skills in C# and .NET.
Note: For all API and schemas, see <https://jsonplaceholder.typicode.com/>.
* Implement the missing code in JsonPlaceholderClient
* Implement the missing code in `JsonPlaceholderClient.cs`
* Setup of the client.
* Method for fetching one post from the external API at `https://jsonplaceholder.typicode.com/posts/{id}`.
* In our endpoint handler, fetch the post with the ID provided.
* In our endpoint handler in `Program.cs`, fetch the post with the ID provided.
* Store the post received in the database using the `Post` entity, but leave out `UpdatedAt` for now.
* Use <http://localhost:8080/swagger/index.html> for testing.
@@ -77,10 +77,10 @@ $ docker compose exec --env PGPASSWORD=password db psql -h localhost -U user --d
### Phase 4
* Think about how we could improve resiliency in downstream API calls.
* For setup, pull in the changes from the `phase4` branch.
* For setup, merge in the changes from the `phase4` branch.
* It adds chaos-injecting code in `Program.cs` to simulate random failures in downstream API calls.
* Execute a couple of requests with increasing ids until an error happens.
* Implement resiliency measures to handle these kinds of failures.
* Implement basic resiliency measures to handle these kinds of failures.
* **Success Criteria: Check the service logs to see the resiliency measures in action.**
### Phase 5