API Documentation
Synesthesia Reading App API (1.0.0)
Download OpenAPI specification:Download
The Synesthesia Reading App API allows access to users' documents and color profiles across devices.
creates a new Color Profile associated with a user
Authorizations:
None
path Parameters
userId required | any |
Request Body schema: application/json
the color profile to be created
grapheme-color map | object (Grapheme_Color_Map) map of graphemes to RGB colors |
exceptions-color map | object (Word_Color_Map) a map of words to RGB colors |
Responses
Request samples
- Payload
Content type
application/json
{- "grapheme-color map": { },
- "exceptions-color map": { }
}
A call from the Laravel backend to the coloring flask to color a document
Authorizations:
None
Request Body schema: application/json
contains a color profile and document text
object (Color_Profile) Contains a map of graphemes to their associated colors and a map of words that are exceptions to the coloring rules to their colors | |
text | string |
Responses
Request samples
- Payload
Content type
application/json
{- "color_profile": {
- "grapheme-color map": { },
- "exceptions-color map": { }
}, - "text": "Nevertheless, the angelic being persevered."
}
Response samples
- 200
Content type
application/json
{- "tokenized text": [
- "The ",
- "over",
- "weight ",
- "red ",
- "fox ",
- "jumped ",
- "over ",
- "the ",
- "sleeping ",
- "brown ",
- "dog",
- "."
], - "word-color map": { }
}