-
Notifications
You must be signed in to change notification settings - Fork 16
Home
Joe Betz edited this page Mar 27, 2014
·
12 revisions
API Hub is a web UI for browsing and searching a catalog of rest.li APIs.
Features:
- Explorable catalog of all Rest.li resources
- Lucene powered full text search across all resources and data schemas
- Detailed resource pages including all available RESTful methods
- Detailed data schema pages
- All resources and data schemas documentation is displayed and nicely formatted
- Generated example HTTP requests and responses
- Interactive Console for composing and sending requests to live REST resources
- Requests composed in console and be saved to a paste service (gist by default) and shared via a link
Requirements:
- Java 1.6+
Download latest stable build: http://rest.li/releases/apihub/restli-apihub-0.0.2.zip
Unzip the build, e.g.:
unzip restli-apihub-0.0.2.zip
Start the application:
Linux/OSX:
cd restli-apihub-0.0.2/bin
./restli-apihub
Windows:
cd restli-apihub-0.0.2\bin
restli-apihub.bat
In your browser, hit http://localhost:9000/apihub
Edit the data loader strategy configuration properties in conf/application.conf
.
- Comment out the test data loader:
#dataLoadStrategy=resource
#filesystemCacheDir=int-test-dataset.json
- Uncomment the crawling loader, modify the
resourceUrls
list to include URLs to all your rest.li resources.
dataLoadStrategy=crawlerFilesystemCached
filesystemCacheDir=/tmp/apihub
resourceUrls=[
"http://localhost:1338/fortunes",
"http://localhost:1338/greetings"
]
Requirements:
- SBT - 0.13.0+
- Play - 2.2.1+
How to run:
play run
- In your browser, hit
http://localhost:9000/apihub
How to debug:
play debug run
- Connect IDE debugger to port 9999