You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From the project root, run the following command in your terminal:
15
15
16
16
```shell
17
-
bin/setup
17
+
bin/run
18
18
```
19
19
20
-
## Running an interactive shell
20
+
## Running a development preview server
21
21
22
22
From the project root, run the following command in your terminal:
23
23
24
24
```shell
25
25
bin/server
26
26
```
27
27
28
-
28
+
This will generate the API specification and start a [Scalar API Client](https://github.com/scalar/scalar/blob/main/packages/api-client/README.md) server to preview the generated documentation.
description: "Retrieve an existing Invoice Payment record",
635
637
tags: ["invoice_payments"],
636
638
operationId: "invoicePayments/get",
@@ -654,7 +656,7 @@ defmodule DocsWeb.ApiSpec do
654
656
},
655
657
"/invoices"=>%PathItem{
656
658
get: %Operation{
657
-
summary: "List Invoice records",
659
+
summary: "List Invoices",
658
660
description:
659
661
"Retrieve a paginated collection of Invoices belonging to your Organization",
660
662
tags: [
@@ -675,7 +677,7 @@ defmodule DocsWeb.ApiSpec do
675
677
},
676
678
"/invoices/{invoice_id}"=>%PathItem{
677
679
get: %Operation{
678
-
summary: "Get an Invoice record",
680
+
summary: "Get an Invoice",
679
681
description: "Retrieve an existing Invoice record",
680
682
tags: ["invoices"],
681
683
operationId: "invoices/get",
@@ -699,7 +701,7 @@ defmodule DocsWeb.ApiSpec do
699
701
},
700
702
"/logs"=>%PathItem{
701
703
get: %Operation{
702
-
summary: "List Log records",
704
+
summary: "List Logs",
703
705
description:
704
706
"Retrieve a paginated collection of Log records belonging to your Organization",
705
707
tags: [
@@ -720,7 +722,7 @@ defmodule DocsWeb.ApiSpec do
720
722
},
721
723
"/logs/{log_id}"=>%PathItem{
722
724
get: %Operation{
723
-
summary: "Get a Log record",
725
+
summary: "Get a Log",
724
726
description: "Retrieve an existing Log record",
725
727
tags: ["logs"],
726
728
operationId: "logs/get",
@@ -1122,7 +1124,7 @@ defmodule DocsWeb.ApiSpec do
1122
1124
},
1123
1125
"/payments"=>%PathItem{
1124
1126
get: %Operation{
1125
-
summary: "List Payment records",
1127
+
summary: "List Payments",
1126
1128
description:
1127
1129
"Retrieve a paginated collection of Payments belonging to your Organization",
1128
1130
tags: [
@@ -1143,7 +1145,7 @@ defmodule DocsWeb.ApiSpec do
1143
1145
},
1144
1146
"/payments/{payment_id}"=>%PathItem{
1145
1147
get: %Operation{
1146
-
summary: "Get a Payment record",
1148
+
summary: "Get a Payment",
1147
1149
description: "Retrieve an existing Payment record",
1148
1150
tags: ["payments"],
1149
1151
operationId: "payments/get",
@@ -1167,9 +1169,9 @@ defmodule DocsWeb.ApiSpec do
1167
1169
},
1168
1170
"/requests"=>%PathItem{
1169
1171
get: %Operation{
1170
-
summary: "List Request records",
1172
+
summary: "List Quote Requests",
1171
1173
description:
1172
-
"Retrieve a paginated collection of Quote request records belonging to your Organization",
1174
+
"Retrieve a paginated collection of Quote Request records belonging to your Organization",
1173
1175
tags: ["requests"],
1174
1176
operationId: "requests/list",
1175
1177
parameters: [
@@ -1191,7 +1193,7 @@ defmodule DocsWeb.ApiSpec do
1191
1193
post: %Operation{
1192
1194
summary: "Create a Quote Request",
1193
1195
description:
1194
-
"The first step to booking a shipment on Arta is to create a quote request. This quote request provides Arta with all the necessary transport details for us to price your eventual shipment. \n\n Arta will return eligible quotes for your shipment across Arta's Premium, Selecct, and Parcel quote types. If any quote types are ineligible given your logistic details, those will be noted in the `disqualifications` response. \n\n You must minimally include `objects`, `origin`, and `destination` details in your API call for Arta to successfully price the transport.",
1196
+
"The first step to booking a shipment on Arta is to create a Quote Request. This quote request provides Arta with all the necessary transport details for us to price your eventual shipment. \n\n Arta will return eligible quotes for your shipment across Arta's Premium, Selecct, and Parcel quote types. If any quote types are ineligible given your logistic details, those will be noted in the `disqualifications` response. \n\n You must minimally include `objects`, `origin`, and `destination` details in your API call for Arta to successfully price the transport.",
@@ -1429,14 +1431,19 @@ defmodule DocsWeb.ApiSpec do
1429
1431
1430
1432
"/shipments"=>%PathItem{
1431
1433
get: %Operation{
1432
-
summary: "List Shipment records",
1434
+
summary: "List Shipments",
1433
1435
description:
1434
1436
"Retrieve a paginated collection of Shipment records belonging to your Organization",
1435
1437
tags: [
1436
1438
"shipments"
1437
1439
],
1438
1440
operationId: "shipments/list",
1439
-
parameters: [Authorization.parameter()],
1441
+
parameters: [
1442
+
Authorization.parameter(),
1443
+
Page.parameter(),
1444
+
PageSize.parameter(),
1445
+
Search.parameter()
1446
+
],
1440
1447
responses: %{
1441
1448
200=>
1442
1449
Operation.response(
@@ -1493,7 +1500,7 @@ defmodule DocsWeb.ApiSpec do
1493
1500
},
1494
1501
"/shipments/{shipment_id}"=>%PathItem{
1495
1502
get: %Operation{
1496
-
summary: "Retrieve a Shipment record",
1503
+
summary: "Retrieve a Shipment",
1497
1504
description: "Retrieve an existing Shipment record",
1498
1505
tags: [
1499
1506
"shipments"
@@ -1516,6 +1523,121 @@ defmodule DocsWeb.ApiSpec do
1516
1523
)
1517
1524
}
1518
1525
}
1526
+
},
1527
+
"/tags"=>%PathItem{
1528
+
get: %Operation{
1529
+
summary: "List Tags",
1530
+
description:
1531
+
"Retrieve a paginated collection of tags belonging to your organization\n\nTags allow you to categorize and organize Shipments, Requests, and other resources for easier tracking and filtering. They can be created, updated, and archived by setting is_active to false. Archived tags remain linked to existing records but cannot be associated with new ones. If needed, tags can be reactivated later.\n\nTags are global for an organization and shared across both Live and Test modes.",
1532
+
tags: [
1533
+
"tags"
1534
+
],
1535
+
operationId: "tags/list",
1536
+
parameters: [
1537
+
Authorization.parameter(),
1538
+
Page.parameter(),
1539
+
PageSize.parameter(),
1540
+
Search.parameter()
1541
+
],
1542
+
responses: %{
1543
+
200=>
1544
+
Operation.response(
1545
+
"A collection of Tag records",
1546
+
"application/json",
1547
+
list(Response.Tag)
1548
+
)
1549
+
}
1550
+
},
1551
+
post: %Operation{
1552
+
summary: "Create a Tag",
1553
+
description: "Create a new tag for your organization.",
1554
+
tags: [
1555
+
"tags"
1556
+
],
1557
+
operationId: "tags/create",
1558
+
parameters: [Authorization.parameter()],
1559
+
requestBody: %RequestBody{
1560
+
content: %{
1561
+
"application/json"=>%MediaType{
1562
+
schema: TagCreate
1563
+
}
1564
+
}
1565
+
},
1566
+
responses: %{
1567
+
200=>
1568
+
Operation.response(
1569
+
"The created tag",
1570
+
"application/json",
1571
+
Response.Tag,
1572
+
headers: default_headers()
1573
+
),
1574
+
403=>
1575
+
Operation.response(
1576
+
"Forbidden",
1577
+
"application/json",
1578
+
nil
1579
+
),
1580
+
422=>
1581
+
Operation.response(
1582
+
"Unprocessible entity",
1583
+
"application/json",
1584
+
Response.Error
1585
+
)
1586
+
}
1587
+
}
1588
+
},
1589
+
"/tags/{tag_name}"=>%PathItem{
1590
+
get: %Operation{
1591
+
summary: "Get a Tag",
1592
+
description: "Retrieve an existing Tag resource by name",
0 commit comments