Created
July 28, 2022 21:25
-
-
Save mhmdcs/9ba4a49c102eb8e30bee3ba9ec07cacd to your computer and use it in GitHub Desktop.
Mock API responses with annotation and interceptor.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Target(AnnotationTarget.FUNCTION) | |
@Retention(AnnotationRetention.RUNTIME) | |
annotation class Mock(val code: Int = 0, val body: String = "") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment