Skip to content

Instantly share code, notes, and snippets.

View azrosen92's full-sized avatar

Aaron Rosen azrosen92

View GitHub Profile
@azrosen92
azrosen92 / search-endpoint.md
Last active November 21, 2019 19:57
Mobile API V7 – Find Loads Endpoint

Mobile Find Loads Endpoint

GET /stark/:version/mobile/find_shipments
  ?pickupStateCode=<string>
  &pickupCity=<string>
  &deliveryStateCode=<string>
  &deliveryCity=<string>
  &pickupMiles=<number>
  &deliveryMiles=<number>
@azrosen92
azrosen92 / load-details-api-v7.md
Last active September 17, 2019 18:08
Potential API Response Body for Load Details v7 endpoint

Shipment Detail API

/mobile/v7/shipments/:id

  interface ShipmentAPIResponse {
    shipment: {
      id: number;
      state: string;
      trackingRequired: boolean;
@azrosen92
azrosen92 / fix-local-schema.md
Last active April 26, 2019 16:45
Have a bunch of extra stuff in your automatically generated alembic revisions?

Do you have to go in and edit your alembic revisions generated with alembic revision --autogenerate all the time because it's generating a bunch of schema changes that shouldn't be there? This basically means that your local database schema is out of date with the production database schema. It's easy to ignore this and just go in and delete all of the irrelevant schema changes that make it into your revision, but who has the time for that? This is actually a pretty simple problem to solve, just follow these instructions:

  1. Checkout the master branch, and make sure it's up to date: ~$ git checkout master && git pull
  2. Get your local database up to date with the most recent revision ~$ alembic upgrade head
  3. Try autogenerating a revision without having made any changes to models ~$ alembic revision --autogenerate
  4. If the generated revision is empty, congrats! Your local schema is in the right place. Otherwise keep going...

Keybase proof

I hereby claim:

  • I am azrosen92 on github.
  • I am azrosen (https://keybase.io/azrosen) on keybase.
  • I have a public key whose fingerprint is E1BA DAAF 3C6C 3DCF 22F5 EFF6 16C0 A481 F5DD CFC3

To claim this, I am signing this object: