Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eaf134e
commit ca48393
Showing
8 changed files
with
403 additions
and
22 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.project | ||
.settings | ||
.classpath | ||
target |
This file contains 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
This file contains 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
167 changes: 167 additions & 0 deletions
167
readability-metrics-webapp/readability-metrics-configuration.xml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,167 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<api xmlns="http://mashape.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mashape.com http://www.mashape.com/schema/mashape-4.0.xsd"> | ||
<endpoint name="Debug Client" group="Diagnostics" http="GET"> | ||
<route>/debug</route> | ||
<description>See https://github.com/ipeirotis/ReadabilityMetrics/wiki/REST-API:-Diagnostics</description> | ||
<parameters/> | ||
<response type="List[Debug Client Model]"/> | ||
</endpoint> | ||
<endpoint name="Delete Text" group="Resources" http="DELETE"> | ||
<route>/text/{id}</route> | ||
<description>See https://github.com/ipeirotis/ReadabilityMetrics/wiki/REST-API:-Managing-Texts</description> | ||
<parameters> | ||
<parameter type="string" optional="false" name="id"> | ||
<description></description> | ||
<example>2c7c3d5f244f1a40069a32224215e0cf9b42485c99d80f357d76f006359c7a18</example> | ||
</parameter> | ||
</parameters> | ||
<response type="string"/> | ||
<errors> | ||
<error type="string" code="404"> | ||
<description>Text Not Found</description> | ||
</error> | ||
</errors> | ||
</endpoint> | ||
<endpoint name="Get Named Metric" group="Metrics" http="GET"> | ||
<route>/text/{id}/metrics/{name}</route> | ||
<description>See https://github.com/ipeirotis/ReadabilityMetrics/wiki/REST-API:-Retrieving-Text-Metrics</description> | ||
<parameters> | ||
<parameter type="string" optional="false" name="id"> | ||
<description>Text Id</description> | ||
<example>o8m0zyetzixyml6g8buhv8vydpag3i:6e048c8dceff8f5591829c39900504e83e6b9179a092a09adb3e5212328c07fc</example> | ||
</parameter> | ||
<parameter type="string" optional="false" name="name"> | ||
<description>Metric Name</description> | ||
<example>ARI</example> | ||
</parameter> | ||
</parameters> | ||
<response type="List[Get Text Metrics Model]"/> | ||
<errors> | ||
<error type="string" code="404"> | ||
<description>Not Found</description> | ||
</error> | ||
</errors> | ||
</endpoint> | ||
<endpoint name="Get Text Metrics" group="Metrics" http="GET"> | ||
<route>/text/{id}/metrics</route> | ||
<description>See https://github.com/ipeirotis/ReadabilityMetrics/wiki/REST-API:-Retrieving-Text-Metrics </description> | ||
<parameters> | ||
<parameter type="string" optional="false" name="id"> | ||
<description>Text Id</description> | ||
<example>o8m0zyetzixyml6g8buhv8vydpag3i:6e048c8dceff8f5591829c39900504e83e6b9179a092a09adb3e5212328c07fc</example> | ||
</parameter> | ||
</parameters> | ||
<response type="List[Get Text Metrics Model]"/> | ||
</endpoint> | ||
<endpoint name="Retrieve Text" group="Resources" http="GET"> | ||
<route>/text/{id}</route> | ||
<description>See https://github.com/ipeirotis/ReadabilityMetrics/wiki/REST-API:-Managing-Texts</description> | ||
<parameters> | ||
<parameter type="string" optional="false" name="id"> | ||
<description>SHA-256 Hex Hash of Content (Lowercase)</description> | ||
<example>2c7c3d5f244f1a40069a32224215e0cf9b42485c99d80f357d76f006359c7a18</example> | ||
</parameter> | ||
</parameters> | ||
<response type="Text"/> | ||
</endpoint> | ||
<endpoint name="Submit Text" group="Resources" http="POST"> | ||
<route>/text</route> | ||
<description>See https://github.com/ipeirotis/ReadabilityMetrics/wiki/REST-API:-Managing-Texts</description> | ||
<parameters> | ||
<parameter type="string" optional="false" name="body"> | ||
<description>Body Text</description> | ||
<example>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</example> | ||
</parameter> | ||
</parameters> | ||
<response type="List[Text]"/> | ||
<errors> | ||
<error type="string" code="404"> | ||
<description>Entity Not Found</description> | ||
</error> | ||
</errors> | ||
</endpoint> | ||
<endpoint name="findAll" group="Resources" http="GET"> | ||
<route>/text</route> | ||
<description>List All Texts - See https://github.com/ipeirotis/ReadabilityMetrics/wiki/REST-API:-Managing-Texts</description> | ||
<parameters/> | ||
<response type="List[Text]"/> | ||
</endpoint> | ||
<model name="Debug Client Model"> | ||
<description></description> | ||
<example>{ | ||
"Host": [ | ||
"ipeirotis-hrd.appspot.com:80" | ||
], | ||
"Accept": [ | ||
"application/json" | ||
], | ||
"X-Forwarded-For": [ | ||
"23.23.3.43, 23.21.68.63" | ||
], | ||
"x-forwarded-port": [ | ||
"443" | ||
], | ||
"x-forwarded-proto": [ | ||
"https" | ||
], | ||
"X-Mashape-Version": [ | ||
"2.3.5" | ||
], | ||
"X-Mashape-User-PublicKey": [ | ||
"o8m0zyetzixyml6g8buhv8vydpag3i" | ||
], | ||
"X-Mashape-User": [ | ||
"aldrinleal" | ||
], | ||
"User-Agent": [ | ||
"mashape-java/2.0" | ||
], | ||
"X-AppEngine-Country": [ | ||
"US" | ||
], | ||
"X-AppEngine-Region": [ | ||
"ny" | ||
], | ||
"X-AppEngine-City": [ | ||
"new york" | ||
], | ||
"X-AppEngine-CityLatLong": [ | ||
"40.714353,-74.005973" | ||
] | ||
}</example> | ||
<fields/> | ||
</model> | ||
<model name="Get Text Metrics Model"> | ||
<description>See https://github.com/ipeirotis/ReadabilityMetrics/wiki/REST-API:-Retrieving-Text-Metrics</description> | ||
<example>{ | ||
"id": "o8m0zyetzixyml6g8buhv8vydpag3i:6e048c8dceff8f5591829c39900504e83e6b9179a092a09adb3e5212328c07fc", | ||
"metrics": { | ||
"ARI": 39.201 | ||
} | ||
}</example> | ||
<fields> | ||
<simple type="string" optional="false" name="id"> | ||
<description>o8m0zyetzixyml6g8buhv8vydpag3i:6e048c8dceff8f5591829c39900504e83e6b9179a092a09adb3e5212328c07fc</description> | ||
</simple> | ||
</fields> | ||
</model> | ||
<model name="Text"> | ||
<description>Represents a Stored Text</description> | ||
<example>{ | ||
"id": "o8m0zyetzixyml6g8buhv8vydpag3i:6e048c8dceff8f5591829c39900504e83e6b9179a092a09adb3e5212328c07fc", | ||
"content": "Lorem+ipsum+dolor+sit+amet%2C+consectetur+adipisicing+elit%2C+sed+do+eiusmod+tempor+incididunt+ut+labore+et+dolore+magna+aliqua.+Ut+enim+ad+minim+veniam%2C+quis+nostrud+exercitation+ullamco+laboris+nisi+ut+aliquip+ex+ea+commodo+consequat.+Duis+aute+irure+dolor+in+reprehenderit+in+voluptate+velit+esse+cillum+dolore+eu+fugiat+nulla+pariatur.+Excepteur+sint+occaecat+cupidatat+non+proident%2C+sunt+in+culpa+qui+officia+deserunt+mollit+anim+id+est+laborum.", | ||
"owner": "o8m0zyetzixyml6g8buhv8vydpag3i" | ||
}</example> | ||
<fields> | ||
<simple type="string" optional="false" name="content"> | ||
<description>Lorem+ipsum+dolor+sit+amet%2C+consectetur+adipisicing+elit%2C+sed+do+eiusmod+tempor+incididunt+ut+labore+et+dolore+magna+aliqua.+Ut+enim+ad+minim+veniam%2C+quis+nostrud+exercitation+ullamco+laboris+nisi+ut+aliquip+ex+ea+commodo+consequat.+Duis+aute+irure+dolor+in+reprehenderit+in+voluptate+velit+esse+cillum+dolore+eu+fugiat+nulla+pariatur.+Excepteur+sint+occaecat+cupidatat+non+proident%2C+sunt+in+culpa+qui+officia+deserunt+mollit+anim+id+est+laborum.</description> | ||
</simple> | ||
<simple type="string" optional="false" name="id"> | ||
<description>o8m0zyetzixyml6g8buhv8vydpag3i:6e048c8dceff8f5591829c39900504e83e6b9179a092a09adb3e5212328c07fc</description> | ||
</simple> | ||
<simple type="string" optional="false" name="owner"> | ||
<description>o8m0zyetzixyml6g8buhv8vydpag3i</description> | ||
</simple> | ||
</fields> | ||
</model> | ||
</api> |
This file contains 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
This file contains 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
Oops, something went wrong.