-
Notifications
You must be signed in to change notification settings - Fork 13
ScreenSlicer API
hollingsworthd edited this page Dec 8, 2014
·
23 revisions
ScreenSlicer's Java API is com.screenslicer.api.webapp.ScreenSlicer.
ScreenSlicer's JSON HTTP APIs run on 127.0.0.1:8887. They're only accessibly to the localhost, so there's no authentication.
JSON HTTP APIs
- POST http://127.0.0.1:8887/screenslicer/query-keyword
- Request JSON: KeywordQuery
- Response JSON: SearchResult[]
- POST http://127.0.0.1:8887/screenslicer/query-form
- Request JSON: FormQuery
- Response JSON: SearchResult[]
- POST http://127.0.0.1:8887/screenslicer/expand-search-result
(to be used when collapse parameter set to true on KeywordQuery or FormQuery)- Request JSON: SearchResult
- Response JSON: SearchResult
- POST http://127.0.0.1:8887/screenslicer/fetch
- Request JSON: Fetch
- Response Text/Plain: cleaned HTML
- POST http://127.0.0.1:8887/screenslicer/cancel
- Request JSON: Cancel
- Response: (HTTP status code 200, no content)