https://kotlinlang.org logo
#android-architecture
Title
# android-architecture
u

ursus

06/16/2020, 7:08 PM
How do you guys prefix your or postfix your rest stuff (retrofit interface + models)?
Copy code
PaymentApi? PaymentService?

ApiCreditCard? ServiceCreditCard? RemoteCreditCard?
o

Orhan Tozan

06/16/2020, 8:07 PM
PaymentService is common, but thinking about it now, PaymentApi might be more intuitive and the better option considering the freauent usage of the Service term.
u

ursus

06/16/2020, 8:15 PM
But Api can mean ani Api, as in public interface, not jus the "over the net" retrofit thing
and yes that -- service on backends (spring) means something else, but same goes for Repository lol
o

Orhan Tozan

06/17/2020, 3:23 PM
That's true, but if you want to apply that logic, you can apply it to alot of other places. It's true that technically API can be anything in code, but everyone knows you mean network API's with it now
2 Views