LiveRamp / reslang

A language for describing resource-oriented APIs & turning them into Swagger or resource diagrams. Oriented around the concepts we want to expose in the APIs.
Apache License 2.0
23 stars 7 forks source link

Add `singleton` POST operations #186

Closed joshlang232 closed 3 years ago

joshlang232 commented 3 years ago

New Feature

Example Use Case The Activations Backend team wants to have a singleton subresource that requires a ton of information to create. We could not add a POST on the singleton subresource so we needed write a custom action to do it: https://github.com/LiveRamp/api-specs/pull/464

ops-github-DU4JOAWE commented 3 years ago

This change is Reviewable

njaczko commented 3 years ago

Hey @joshlang232, it takes a bit of effort to review Reslang PRs. Sorry we didn't get to this this week, hopefully we can get to it next week.

joshlang232 commented 3 years ago

No worries! @njaczko Appreciate the ACK. Let me know if you need anything else from me. Definitely would like to get this merged in within the next week or two before we have actual consumers using the "custom" action in our API

njaczko commented 3 years ago

Thanks for the walkthrough, @joshlang232 . I played with singleton POSTs for a bit and everything I tried worked correctly. LGTM.