-
Notifications
You must be signed in to change notification settings - Fork 9
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
Added Method PUT #27
Added Method PUT #27
Conversation
Codecov Report
@@ Coverage Diff @@
## master #27 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 23 24 +1
Lines 278 246 -32
Branches 11 0 -11
=====================================
- Hits 278 246 -32
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! I just made a request-change about access control and unit tests at NetworkPut
.
Thanks for the support @amadeu01
@@ -0,0 +1,17 @@ | |||
import Foundation | |||
|
|||
protocol Putable { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make this public
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@@ -0,0 +1,70 @@ | |||
import Foundation | |||
|
|||
public final class NetworkPut: Putable { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you make unit tests for this guy?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I forgot to write this comment 🤪, sorry
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure. I will
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@ronanrodrigo I forgot to update my PR, sorry. I'll do it soon |
I will update my PR soon, sorry for my delay |
@ronanrodrigo o
O que acaba acontecendo que os metodos entre put e post são iguais basicamente, o que vai mudar é que o usuário vai poder usar um, ou outro. Mas, vai parecer codigo duplicado. |
Actually, |
May appear to be a similar code. But they do different things. And because of this they are different code. Maybe some refactor to aggregate them come up one day. But first, we must to understand if that code repetition are accidental or no. And after this we can proceed with some strategy to make the refactor. Baby steps 🚼 By accidental duplication:
|
@ronanrodrigo |
@amadeu01 I just need to finish the review. I didn't start yet :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job @amadeu01 thanks for your contribution. And we will keep talking about the refactor 👍
Implement other HTTP verbs #8
Added PUT verb