Update 'parsers/Readme.md'

Update Readme to fix table formatting
This commit is contained in:
IamTheFij 2018-02-02 19:30:53 +00:00
parent 05182a65fe
commit 0529de1723

View File

@ -4,19 +4,32 @@ A parser should conform to a simple API spec so that it can be easily accessed
# Healthcheck # Healthcheck
Simple endpoint that accepts nothing and returns 'OK' on success. Simple endpoint that accepts nothing and returns 'OK' on success.
|Attrs | |
|--------|---|
|Path |`/`| |Path |`/`|
|Method |`GET`| |Method |`GET`|
|Response|`"OK"`| |Response|`"OK"`|
# Parse # Parse
The primary endpoint that will parse a message The primary endpoint that will parse a message
|Attrs | |
|--------|---|
|Path |`/parse`| |Path |`/parse`|
|Method |`POST`| |Method |`POST`|
|Request |`json`|
|Response|`json`| |Response|`json`|
Response Request:
|Key |Example Value |Description| |Key |Example Value |Description|
|--------|----------------------|-----------| |--------|-----------------------------------------------------|-----------|
|token |`"1Z879E930346834440"`|String token that was extracted| |`"message"` |`"Here's your tracking number: 1Z879E930346834440"`|Full contents of the email message|
|type |`"SHIPPING"` |A string that indicates what type of metadata that was extracted. This will be used by other services to understand what kind of data this is.|
|metadata|`{"carrier": "UPS"}` |A dictionary with any other additional metadat that may be used by other services| Response:
|Key |Example Value |Description|
|------------|----------------------|-----------|
|`"token"` |`"1Z879E930346834440"`|String token that was extracted|
|`"type"` |`"SHIPPING"` |A string that indicates what type of metadata that was extracted. This will be used by other services to understand what kind of data this is.|
|`"metadata"`|`{"carrier": "UPS"}` |A dictionary with any other additional metadat that may be used by other services|