Originate / recouple

Declarative and type-safe API bridging. Write full-stack applications with ease.
MIT License
4 stars 1 forks source link

Add syntactic sugar #17

Closed astampoulis closed 6 years ago

astampoulis commented 6 years ago

Adding syntactic sugar to make writing endpoints nicer.

Paired with @ArcherWheeler on this one.

Closes #11.

astampoulis commented 6 years ago

Any suggestions for better names for endpoint and fragment welcome!

ArcherWheeler commented 6 years ago

What do people think of:

url`api`
  .slash`foo`
  .cap`:userId`
  .slash`bar`
sleexyz commented 6 years ago

I'm wondering how much string interpolation gives us, especially since now we'll have middleware that are take objects as parameters. And then we'll have a mix of backticks and parens. Perhaps we're better off sticking with parens?

astampoulis commented 6 years ago

@ArcherWheeler Oh sorry, I closed this before deciding on names, but we could do that change separately!