Merge ~cjwatson/snapstore-client:snapident-endpoint-names into snapstore-client:master

Proposed by Colin Watson
Status: Merged
Merged at revision: 4255edaa132c717aa6d89d299ea68eec18d8ebe3
Proposed branch: ~cjwatson/snapstore-client:snapident-endpoint-names
Merge into: snapstore-client:master
Diff against target: 22 lines (+2/-2)
1 file modified
siab_client/webservices.py (+2/-2)
Reviewer Review Type Date Requested Status
Matt Goodall (community) Approve
Review via email: mp+326015@code.launchpad.net

Commit message

Update snapident API URLs

To post a comment you must log in.
Revision history for this message
Matt Goodall (matt-goodall) wrote :

makes sense, +1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/siab_client/webservices.py b/siab_client/webservices.py
2index 6747302..792fd67 100644
3--- a/siab_client/webservices.py
4+++ b/siab_client/webservices.py
5@@ -19,7 +19,7 @@ def get_snap_id_for_name(snap_name, series):
6 """
7 ident_root = config.read_config()['services']['snapident']
8 resp = requests.post(
9- urllib.parse.urljoin(ident_root, '/fetch-blobs'),
10+ urllib.parse.urljoin(ident_root, '/snaps/filter'),
11 json={
12 'filters': [{
13 'snap_name': snap_name,
14@@ -54,7 +54,7 @@ def register_snap_name_and_blob(snap_id, snap_name, series, snap_blob,
15 if country_blacklist is not None:
16 data['country_blacklist'] = country_blacklist
17 resp = requests.post(
18- urllib.parse.urljoin(ident_root, '/create-snaps'),
19+ urllib.parse.urljoin(ident_root, '/snaps/update'),
20 json={'snaps': [data]})
21 if resp.status_code == 200:
22 print(

Subscribers

People subscribed via source and target branches

to all changes: