Request a shipment.
Parameter | Type | Required |
---|---|---|
pickup-coordinates | longitude,latitude | Yes |
pickup-contact-name | string | Yes |
pickup-phone | string | Yes |
pickup-time | iso-8601 date | Yes |
delivery-coordinates | longitude,latitude | Yes |
delivery-contact-name | string | Yes |
delivery-phone | string | Yes |
delivert-time | iso-8601 date | Yes |
heavy | true or false | No |
fragile | true or false | No |
- Start the application:
lein run-dev
* - Go to localhost:8080 to see:
Hello World!
- Read your app's source code at src/shipments_api/service.clj. Explore the docs of functions that define routes and responses.
- Run your app's tests with
lein test
. Read the tests at test/shipments_api/service_test.clj. - Learn more! See the Links section below.
* lein run-dev
automatically detects code changes. Alternatively, you can run in production mode
with lein run
.
To configure logging see config/logback.xml. By default, the app logs to stdout and logs/. To learn more about configuring Logback, read its documentation.