Skip to content

Commit 7d9d6b1

Browse files
committed
restlet2repo: saving modified files
1 parent 1996e2d commit 7d9d6b1

4 files changed

Lines changed: 55 additions & 44 deletions

File tree

spec/definitions/profile_object_patch.yaml

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,12 @@
1-
example:
2-
address: 11 Wall Street
3-
carrier_onboard_url: www.carrier.com/onboard
4-
carrier_terms_url: www.carrier.com/terms
5-
city: New York
6-
company: NY Stock Exchange
7-
contact_extension: 111
8-
contact_name: J.P. Morgan
9-
contact_number: 8885559999
10-
dispatch_extension: 1234
11-
dispatch_number: 4445556666
12-
dot_number: '12345678'
13-
14-
fax_number: 1112223333
15-
mc_number: '12345678'
16-
mobile_carrier: Sprint
17-
mobile_number: 4445556666
18-
state: NY
19-
web_page: www.directfreight.com
20-
zip: '12345'
1+
example: >-
2+
{ "address": "11 Wall Street", "city": "New York", "company": "NY Stock
3+
Exchange", "contact_extension": 111, "contact_name": "J.P. Morgan",
4+
"contact_number": 8885559999, "dispatch_extension": 1234, "dispatch_number":
5+
4445556666, "dot_number": "12345678", "email": "[email protected]",
6+
"fax_number": 1112223333, "mc_number": "12345678", "mobile_carrier": "Sprint",
7+
"mobile_number":4445556666, "state": "NY", "web_page":
8+
"www.directfreight.com", "carrier_onboard_url": "www.carrier.com/onboard",
9+
"carrier_terms_url": "www.carrier.com/terms", "zip": "12345" }
2110
properties:
2211
address:
2312
type: string

spec/definitions/stop_item.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,8 @@ properties:
55
type: string
66
summary:
77
description: Summary of this field.
8-
example: '411 Locust Chillicothe, MO 64601 on 03-02-2023'
8+
example: |
9+
411 Locust
10+
Chillicothe, MO 64601
11+
on 03-02-2023
912
type: string

spec/definitions/truck_info_object.yaml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
example:
2-
deadhead_per_mile: 1.29
3-
driver_per_mile: 0.72
4-
fuel_capacity: 200
5-
ins_permits_per_mile: 0.13
6-
maint_per_mile: 0.17
7-
miles_per_gal: 6.5
8-
truck_ownership_per_mile: 0.27
1+
example: |
2+
{
3+
"miles_per_gal": 6.50,
4+
"maint_per_mile": 0.17,
5+
"driver_per_mile": 0.72,
6+
"truck_ownership_per_mile": 0.27,
7+
"ins_permits_per_mile": 0.13,
8+
"fuel_capacity": 200.00,
9+
"deadhead_per_mile": 1.29
10+
}
911
properties:
1012
deadhead_per_mile:
1113
type: number

spec/paths/optins.yaml

Lines changed: 32 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ delete:
66
- enum:
77
- email
88
- text
9+
- voice
910
- push
1011
in: query
1112
name: notification_medium
@@ -36,6 +37,7 @@ get:
3637
enum:
3738
- email
3839
- text
40+
- voice
3941
- push
4042
in: query
4143
name: notification_medium
@@ -82,6 +84,9 @@ get:
8284
tags:
8385
- optins
8486
patch:
87+
description: >-
88+
Used to verify an optin code, or update which channels the user is
89+
subscribed to. Email is not yet enabled.
8590
parameters:
8691
- in: header
8792
name: end-user-token
@@ -92,19 +97,28 @@ patch:
9297
required: true
9398
schema:
9499
properties:
100+
code:
101+
description: >-
102+
This code is generated on a POST, and will arrive via the same
103+
medium it was designated for.
104+
type: string
105+
notification_channel:
106+
description: >-
107+
Specify which channels to subscribe to update. You can also send
108+
in an empty string to opt out of everything.
109+
enum:
110+
- all
111+
- alerts
112+
- search_data
113+
type: string
95114
notification_medium:
96115
enum:
97116
- email
98117
- text
99-
type: string
100-
verification_code:
101-
description: >-
102-
This code is generated on a POST, and will arrive via the same
103-
medium it was designated for.
118+
- voice
104119
type: string
105120
required:
106121
- notification_medium
107-
- verification_code
108122
type: object
109123
responses:
110124
'204':
@@ -114,10 +128,10 @@ patch:
114128
- optins
115129
post:
116130
description: >-
117-
Currently only Push notifications are implemented. With them a post creates
118-
and approves the optin. Later on when text/email is ported post will create
119-
the optin with the status of 'no response' meaning they haven't replied with
120-
the propper code, or clicked an authorization link.
131+
Text, voice, push and manual are implemented. With push a post creates and
132+
approves the optin. With the others, a code is sent to the refecenced
133+
contact, and can be verified via the PATCH operation. Email has not yet been
134+
enabled.
121135
parameters:
122136
- in: header
123137
name: end-user-token
@@ -131,22 +145,25 @@ post:
131145
notification_channel:
132146
default: all
133147
description: >-
134-
Currently defaults to all, and is ignored. When we start using it
135-
it will be for opting people out or in one list like alerts, or
136-
messages, but not others.
148+
Everything but email has been implemented. Push is 1 step
149+
verification. Everyone but push and manual uses PATCH to verify
150+
the code.
137151
type: string
138152
notification_medium:
139153
description: We currently only accept push
140154
enum:
141155
- email
142156
- text
157+
- voice
158+
- manual
143159
- push
144160
type: string
145161
tokens:
146162
description: >-
147163
This is how you can add multiple push notifications at once, or
148-
for systems that have multiple tokens required.
149-
example: '"tokens": { "ios": "12345678", "android": "5432344" } '
164+
for systems that have multiple tokens required. For other
165+
notification mediums use "contact_number": "1234567890" instead of
166+
ios or android.
150167
properties:
151168
$SERVICE_OR_KEY_NAME:
152169
description: >-

0 commit comments

Comments
 (0)