Skip to content

Dev06 08 ricardo collado practice02#9

Open
RicardoColladoRothschild wants to merge 2 commits intoorodriguez:mainfrom
RicardoColladoRothschild:Dev06-08_Ricardo_Collado_Practice02
Open

Dev06 08 ricardo collado practice02#9
RicardoColladoRothschild wants to merge 2 commits intoorodriguez:mainfrom
RicardoColladoRothschild:Dev06-08_Ricardo_Collado_Practice02

Conversation

@RicardoColladoRothschild

Modify the POST /expenses endpoint saving the current Date and Time each time an expense is created:
A) Add a new property to Expenses: createdAt, type: strings
b) Add property initialization at when the actual expense is added to the InMemoryExpenseRepository

Add an endpoint for PUT /expenses {id}
A) Add on ExpenseController endpoint for updating using HttpPut.
b) Created an abstract method on IExpenseServices, to handle UpdateExpense, and provide behavior on ExpenseService.
c) Add an updateExpense emthod taht actually handle the update per request, by looking the expense to update with the id that its receive. Add an Endpoint and return the expense updated

… save the exact time that it was added to the collection. This is accomplished by adding a new property to the expense. Adding also a new field when sending the response throught the expenseService.
…e update per request, by looking the expense to update with the id that its receive. Add an Endpoint and return the expense updated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant