mirror of
https://github.com/platformio/platformio-core.git
synced 2025-08-01 10:54:27 +02:00
Update the registry publish endpoints
This commit is contained in:
@@ -43,7 +43,7 @@ class RegistryClient(RESTClient):
|
|||||||
with open(archive_path, "rb") as fp:
|
with open(archive_path, "rb") as fp:
|
||||||
response = self.send_auth_request(
|
response = self.send_auth_request(
|
||||||
"post",
|
"post",
|
||||||
"/v3/package/%s/%s" % (owner, PackageType.from_archive(archive_path)),
|
"/v3/packages/%s/%s" % (owner, PackageType.from_archive(archive_path)),
|
||||||
params={
|
params={
|
||||||
"private": 1 if private else 0,
|
"private": 1 if private else 0,
|
||||||
"notify": 1 if notify else 0,
|
"notify": 1 if notify else 0,
|
||||||
@@ -67,7 +67,7 @@ class RegistryClient(RESTClient):
|
|||||||
owner = (
|
owner = (
|
||||||
account.get_account_info(offline=True).get("profile").get("username")
|
account.get_account_info(offline=True).get("profile").get("username")
|
||||||
)
|
)
|
||||||
path = "/v3/package/%s/%s/%s" % (owner, type, name)
|
path = "/v3/packages/%s/%s/%s" % (owner, type, name)
|
||||||
if version:
|
if version:
|
||||||
path = path + "/version/" + version
|
path = path + "/version/" + version
|
||||||
response = self.send_auth_request(
|
response = self.send_auth_request(
|
||||||
|
Reference in New Issue
Block a user