-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add "push_policy" command to the CLI #986
Conversation
011713d
to
e8fd1b1
Compare
local url = system_url(access_token, admin_portal_domain) | ||
|
||
return http_client.post( | ||
url, { name = name, version = version, schema = cjson.encode(manifest) } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You probably want back JSON, so you should send Accept: application/json
and sending there JSON, so should send Content-Type: application/json
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or there should be http_ng.json.post
that does it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right. Fixed 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking great! Good job.
@hallelujah In this PR, I assume that there's going to be a Can you please confirm that this looks OK to you whenever you have some time? Thanks! |
e8fd1b1
to
9caadaf
Compare
@davidor yes, for parameters we will have:
|
This PR adds a command to push policy schemas to the 3scale admin portal.
I tagged it as WIP because we'll need confirmation from @hallelujah to make sure that the endpoints used and their parameters are correct.