TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Building the Brex API

105 pointsby hdubugrasover 3 years ago

6 comments

dnauticsover 3 years ago
&gt; One of the best decisions we made was to auto generate the OpenAPI specs from our code.<p>I&#x27;m curious as to what they used to do this. It&#x27;s been a major pain point for me for five-odd years that Elixir Phoenix (don&#x27;t know if Brex used Phoenix for this) doesn&#x27;t have an OpenAPI <i>autogenerator</i>, and, now, this is my third job where I&#x27;m building an OpenAPI API in Elixir, so I got permission to open source our solution later this year.<p>Would have been nice to collaborate, but I guess Brex is leaving Elixir, so, there&#x27;s that. They kind of had a bit of a reputation for not contributing much code back to the ecosystem =(
评论 #28951606 未加载
评论 #28952466 未加载
评论 #28951522 未加载
joshuakellyover 3 years ago
This is really cool to see. At the start of my YC batch, when I was still dabbling with building general accounting ledger systems as a service, I discovered that the GraphQL API Brex itself was using was, actually, pretty usable. Schema introspection worked. I was able to write scripts with it. Looks like they went with REST for the truly public one, but it&#x27;s good to see it at all frankly.
numairover 3 years ago
I was wondering why Brex left Elixir, and what happened to all of the tooling they created to work in the language. From their blog[1]:<p>&gt; Building and maintaining internal libraries to support Elixir as our primary backend language became time consuming, and few other users in the ecosystem seemed to share enough use cases to make OSS collaboration mutually beneficial.<p>The whole point of giving things, and contributing code, is to do it without the expectation of a return or that anyone will even use it. It’s the mystery and the surprise of the way in which others benefit that makes our <i>entire ecosystem</i> work. When companies ride on the volunteer labor of others to become worth billions, and then come up with all sorts of excuses for why they can’t give back... I guess the success of AWS demonstrates that nobody will care.<p>1: <a href="https:&#x2F;&#x2F;medium.com&#x2F;brexeng&#x2F;building-backend-services-with-kotlin-7c8410795e4b" rel="nofollow">https:&#x2F;&#x2F;medium.com&#x2F;brexeng&#x2F;building-backend-services-with-ko...</a>
评论 #28959343 未加载
pbreitover 3 years ago
I&#x27;m seeing a lot more APIs adding the &quot;Bearer &quot; prefix which I don&#x27;t really understand. What&#x27;s the point of it? This particular one doesn&#x27;t even look like a &quot;conventional&quot; bearer token in the JWT sense.
评论 #28948635 未加载
评论 #28949774 未加载
评论 #28949292 未加载
ianhawesover 3 years ago
How does Brex compare to Mercury?
评论 #28950332 未加载
评论 #28952750 未加载
评论 #28950157 未加载
alevy1511over 3 years ago
Love this!!!