Created
March 2, 2021 17:38
-
-
Save jb08/0be0ab3cd69fa2ff41f147a5d4c5a5f3 to your computer and use it in GitHub Desktop.
Invitations API
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## POST /invitations | |
gateway_route_body(->(o) { o.country }) | |
params do | |
requires :candidate_id, type: String | |
requires :package, type: String | |
optional :tags, type: Array[String] | |
... | |
end | |
post '/' do | |
... | |
error!("routed to incorrect data center", 500) unless InternationalHelper.validate_data_center(data_requirements) | |
... | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment