Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

AndroidStubServer

Maven Central master: Build Status develop: Build Status

Simple Http server that makes simulating API easy.

How to use

  • Add dependency to build.gradle:
compile 'com.byoutline.androidstubserver:stubserver:1.4.1'
  • Create mock folder in your assetes directory (src/main/assets by default in gradle).
  • Put there a config.json file.
  • You can find config.json description at MockServer.
  • If you have any static content(like images or .html files) put them in mock/static folder.

Now you can start server by passing it context and simulated network type:

AndroidStubServer.start(this, NetworkType.EDGE);

About

Simple Http server that makes simulating API easy.

Resources

License

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.