NAV Navbar
shell java swift javascript

Auth-Service

https://dev.weav.cloud/auth/docs

External Reporting-Service

Report a driver

Report a rider

Ride end report

External Penalties-Service

Driver Penalty (On ride start)

External Cancellations-Service

Informative Rider Cancellation

Informative Driver Cancellation

Assertive Rider Cancellation

Assertive Driver Cancellation

Notifications Posted

External Drivers-License-Service

Get Drivers License Image

Put Drivers License Image

External User-Service

Get User

  curl -X GET \
    https://api.weav.cloud/user/$uid \
    -H 'Accept: */*' \
    -H 'Authorization: $token' \
    -H 'uid: $uid'

Get Birth Date

  curl -X GET \
    https://api.weav.cloud/user/${uid}/birth_date \
    -H 'Authorization: ${token}' \
    -H 'uid: ${uid}'

Get Email

  curl -X GET \
    https://api.weav.cloud/user/${uid}/email \
    -H 'Authorization: ${token}' \
    -H 'uid: ${uid}'

Get Phone

  curl -X GET \
    https://api.weav.cloud/user/${uid}/phone \
    -H 'Authorization: ${token}' \
    -H 'uid: ${uid}'

Get User First

  curl -X GET \
    https://api.weav.cloud/user/${uid}/user_first \
    -H 'Authorization: ${token}' \
    -H 'uid: ${uid}'

Get User Last

  curl -X GET \
    https://api.weav.cloud/user/${uid}/user_last \
    -H 'Authorization: ${token}' \
    -H 'uid: ${uid}'

Get Profile Image

  curl -X GET \
    https://api.weav.cloud/user/${uid}/profile_image \
    -H 'Authorization: ${token}' \
    -H 'uid: ${uid}'

Get Education

  curl -X GET \
    https://api.weav.cloud/user/${uid}/education \
    -H 'Authorization: ${token}' \
    -H 'uid: ${uid}'

Get About me

  curl -X GET \
    https://api.weav.cloud/user/${uid}/about_me \
    -H 'Authorization: ${token}' \
    -H 'uid: ${uid}'

Get Occupation

  curl -X GET \
    https://api.weav.cloud/user/${uid}/occupation \
    -H 'Authorization: ${token}' \
    -H 'uid: ${uid}'

Get Vehicles

  curl -X GET \
    https://api.weav.cloud/user/${uid}/vehicles \
    -H 'Authorization: ${token}' \
    -H 'uid: ${uid}'

Get Vehicle

  curl -X GET \
    https://api.weav.cloud/user/${uid}/vehicle/${license} \
    -H 'Authorization: ${token}' \
    -H 'uid: ${uid}'

Get Default Vehicle

  curl -X GET \
    https://api.weav.cloud/user/${uid}/default-vehicle \
    -H 'Authorization: ${token}'

Edit User

Set Default Vehicle

  curl -X PATCH \
    https://api.weav.cloud/user/${uid}/default-vehicle \
    -H 'Authorization: ${token}'

Upload Profile image

Add Vehicle

External Post-Service

Post Request information

Ride Return Schema

Request Return Schema

Add Ride Mutation Schema

Add Request Mutation Schema

Edit Ride Mutation Schema

Edit Request Mutation Schema

Delete Ride Mutation Schema

Delete Request Mutation Schema

Notifications Posted

External Review-Service

https://dev.weav.cloud/review/docs

External Match-List-Service

Get Ride Match

Get Request Match

Accept Match

Decline Match

Notifications Posted

External Messaging Service

Post Request information

CreateMessage Mutation Schema

mutation CreateMessage(
    $conversation_id: String!,
    $author: String!,
    $body: String!) {
        createMessage(
            conversation_id: $conversation_id,
            author: $author,
            body: $body) {
        ...returnMessage
    }
}

// Query Variables
{
    "conversation_id": "",
    "author": "",
    "body": ""
}

DeleteMessage Mutation Schema

mutation DeleteMessage(
    $message_id: String!) {
        deleteMessage(
            message_id: $message_id)
}

// Query Variables
{
    "message_id": ""
}

MessageAddedSubscription Schema

subscription MessageAddedSubscription($conversation_id: String!) {
    messageAdded(conversation_id: $conversation_id) {
        ...returnMessage
    }
}

// Query Variables
{
    "conversation_id": ""
}

Query Conversation

query conversation($ride_id: String!){
  conversation(ride_id: $ride_id){
    participants{
      _id
      user_first
      user_last
      profile_image
      seats
      luggage
    }
    _id
  }
}

// Query Variables
{
    "ride_id": "",
}

Notifications Posted

External Enroute-Service

Get Enroute Ride

  curl -X GET \
    https://api.weav.cloud/enroute/$id \
    -H 'Authorization: $token' \
    -H 'uid: $uid'

Get Driver Indication

  curl -X GET \
    https://api.weav.cloud/enroute/$id/indicated \
    -H 'Authorization: $token' \
    -H 'uid: $uid'

Start Enroute Ride

  curl -X POST \
    https://api.weav.cloud/enroute/start-ride \
    -H 'Authorization: $token' \
    -H 'uid: $uid' \
    -D '{ "rideId": "47af541b-031e-429a-86b5-3784ef21402a" }'

Arrived

  curl -X PATCH \
    https://api.weav.cloud/enroute/arrived/:id \
    -H 'Authorization: $token' \
    -H 'uid: $uid'

Update Enroute Ride

  curl -X PATCH \
    https://api.weav.cloud/enroute/update-ride/:id \
    -H 'Authorization: $token' \
    -H 'uid: $uid'
    -D '{
      "time": 1581968021,
      "success": "true",
    }'

External History-Service

Get Archived Ride

  curl -X GET \
    https://api.weav.cloud/history/ride/$id \
    -H 'Authorization: $token' \
    -H 'uid: $uid'

Get Archived Request

  curl -X GET \
    https://api.weav.cloud/history/request/$id \
    -H 'Authorization: $token' \
    -H 'uid: $uid'

Get Archived Posts

  curl -X GET \
    https://api.weav.cloud/history/posts/$id \
    -H 'Authorization: $token' \
    -H 'uid: $uid'

Archive

  curl -X PATCH \
    https://api.weav.cloud/history/archive/:type/:id \
    -H 'Authorization: $token' \
    -H 'uid: $uid'

External Payouts Service

Get Hyperwallet User

Get Transfer Methods

Create Hyperwallet User

Create Transfer Method

Create Payout

Patch User

External Payments Service

GET Payment Methods

PATCH Make Payment Method Default

POST Client Token

External Transaction Service

Enums

GET Receipt for ride

GET Balance for user

PATCH Make Payment Method Default

Create Hyperwallet User

POST Client Token

External Weav-Link-Service

  curl -X GET \
    https://dev.weav.cloud/weav-link/generate-link/$id \
    -H 'Authorization: $token' \
    -H 'uid: $uid'
  curl -X GET \
    https://dev.weav.cloud/weav-link/verify-link/$token \
    -H 'Authorization: $token' \
    -H 'uid: $uid'

Internal User-Service

Edit Rating

Create User

Internal Post-Service

Add Rider to Ride

Internal Review-Service

Delete Reviews

Internal Match-List-Service

Get Match-List

Get Number of Matches

Update Match-List

Create new Request Match-List

Create new Ride Match-List

Add new Match

Delete Match-List

Internal Device ID Service

Description

A set of internal routes for creating and managing the device ids necessary for sending notifications to Android and iOS devices.

Testing

You can use the npm run test command to automatically execute a series of unit tests on the service. These tests write to the "Auth-Test-Cluster" under the "Weav-Test" project. Currently includes tests for device id creation, retrieveal and deletion.

Get All Device IDs for User

Register Device ID to User

Delete Device ID

Delete All Device IDs for User

Errors

The Weav API uses the following error codes:

Error Code Meaning
400 Bad Request -- Your request is invalid.
401 Unauthorized -- Your API key is wrong.
403 Forbidden -- The resource requested is not able to be accessed from you user.
404 Not Found -- The specified resource could not be found.
500 Internal Server Error -- We had a problem with our server. Try again later.
503 Service Unavailable -- We're temporarily offline for maintenance. Please try again later.