Skip to content

Commit 7196093

Browse files
Merge pull request #2116 from VWS-Python/vws-links
Update VWS links to work again
2 parents 599d561 + 9493257 commit 7196093

File tree

12 files changed

+33
-33
lines changed

12 files changed

+33
-33
lines changed

docs/source/contributing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ The ``request_count`` in a database summary is always ``0``.
172172
The documentation for the target summary report says "Note: tracking_rating and ``reco_rating`` are provided only when status = success.".
173173
However, ``reco_rating`` is never provided and ``tracking_rating`` is provided even when the status is "failed".
174174

175-
.. _Vuforia Query Web API: https://library.vuforia.com/web-api/vuforia-query-web-api
175+
.. _Vuforia Query Web API: https://developer.vuforia.com/library/web-api/vuforia-query-web-api
176176

177177
Release Process
178178
---------------

docs/source/differences-to-vws.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Result codes
8686
------------
8787

8888
Result codes are returned by requests to Vuforia to help with debugging.
89-
See `VWS API Result Codes <https://library.vuforia.com/web-api/cloud-targets-web-services-api#result-codes>`_ for details of the available result codes.
89+
See `VWS API Result Codes <https://developer.vuforia.com/library/web-api/cloud-targets-web-services-api#result-codes>`_ for details of the available result codes.
9090
There are some result codes which the mock cannot return.
9191

9292
These are:

src/mock_vws/_constants.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class ResultCodes(Enum):
1010
Constants representing various VWS result codes.
1111
1212
See
13-
https://library.vuforia.com/web-api/cloud-targets-web-services-api#result-codes.
13+
https://developer.vuforia.com/library/web-api/cloud-targets-web-services-api#result-codes.
1414
1515
Some codes here are not documented in the above link.
1616
"""
@@ -42,7 +42,7 @@ class TargetStatuses(Enum):
4242
Constants representing VWS target statuses.
4343
4444
See the 'status' field in
45-
https://library.vuforia.com/web-api/cloud-targets-web-services-api#target-record
45+
https://developer.vuforia.com/library/web-api/cloud-targets-web-services-api#target-record
4646
"""
4747

4848
PROCESSING = "processing"

src/mock_vws/_flask_server/vwq.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
A fake implementation of the Vuforia Web Query API using Flask.
33
44
See
5-
https://library.vuforia.com/web-api/vuforia-query-web-api
5+
https://developer.vuforia.com/library/web-api/vuforia-query-web-api
66
"""
77

88
import email.utils

src/mock_vws/_flask_server/vws.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
A fake implementation of the Vuforia Web Services API.
33
44
See
5-
https://library.vuforia.com/web-api/cloud-targets-web-services-api
5+
https://developer.vuforia.com/library/web-api/cloud-targets-web-services-api
66
"""
77

88
import base64
@@ -153,7 +153,7 @@ def add_target() -> Response:
153153
Add a target.
154154
155155
Fake implementation of
156-
https://library.vuforia.com/web-api/cloud-targets-web-services-api#add
156+
https://developer.vuforia.com/library/web-api/cloud-targets-web-services-api#add
157157
"""
158158
settings = VWSSettings.model_validate(obj={})
159159
databases = get_all_databases()
@@ -225,7 +225,7 @@ def get_target(target_id: str) -> Response:
225225
Get details of a target.
226226
227227
Fake implementation of
228-
https://library.vuforia.com/web-api/cloud-targets-web-services-api#target-record
228+
https://developer.vuforia.com/library/web-api/cloud-targets-web-services-api#target-record
229229
"""
230230
databases = get_all_databases()
231231
database = get_database_matching_server_keys(
@@ -282,7 +282,7 @@ def delete_target(target_id: str) -> Response:
282282
Delete a target.
283283
284284
Fake implementation of
285-
https://library.vuforia.com/web-api/cloud-targets-web-services-api#delete
285+
https://developer.vuforia.com/library/web-api/cloud-targets-web-services-api#delete
286286
"""
287287
settings = VWSSettings.model_validate(obj={})
288288
databases = get_all_databases()
@@ -335,7 +335,7 @@ def database_summary() -> Response:
335335
Get a database summary report.
336336
337337
Fake implementation of
338-
https://library.vuforia.com/web-api/cloud-targets-web-services-api#summary-report
338+
https://developer.vuforia.com/library/web-api/cloud-targets-web-services-api#summary-report
339339
"""
340340
databases = get_all_databases()
341341
database = get_database_matching_server_keys(
@@ -388,7 +388,7 @@ def target_summary(target_id: str) -> Response:
388388
Get a summary report for a target.
389389
390390
Fake implementation of
391-
https://library.vuforia.com/web-api/cloud-targets-web-services-api#retrieve-report
391+
https://developer.vuforia.com/library/web-api/cloud-targets-web-services-api#retrieve-report
392392
"""
393393
databases = get_all_databases()
394394
database = get_database_matching_server_keys(
@@ -442,7 +442,7 @@ def get_duplicates(target_id: str) -> Response:
442442
Get targets which may be considered duplicates of a given target.
443443
444444
Fake implementation of
445-
https://library.vuforia.com/web-api/cloud-targets-web-services-api#check
445+
https://developer.vuforia.com/library/web-api/cloud-targets-web-services-api#check
446446
"""
447447
databases = get_all_databases()
448448
settings = VWSSettings.model_validate(obj={})
@@ -502,7 +502,7 @@ def target_list() -> Response:
502502
Get a list of all targets.
503503
504504
Fake implementation of
505-
https://library.vuforia.com/web-api/cloud-targets-web-services-api#details-list
505+
https://developer.vuforia.com/library/web-api/cloud-targets-web-services-api#details-list
506506
"""
507507
databases = get_all_databases()
508508
database = get_database_matching_server_keys(
@@ -543,7 +543,7 @@ def update_target(target_id: str) -> Response:
543543
Update a target.
544544
545545
Fake implementation of
546-
https://library.vuforia.com/web-api/cloud-targets-web-services-api#update
546+
https://developer.vuforia.com/library/web-api/cloud-targets-web-services-api#update
547547
"""
548548
settings = VWSSettings.model_validate(obj={})
549549
# We do not use ``request.get_json(force=True)`` because this only works

src/mock_vws/_query_validators/image_validators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def validate_image_file_size(
7777
image_value = image_part.stream.read()
7878

7979
# This is the documented maximum size of a PNG as per.
80-
# https://library.vuforia.com/web-api/vuforia-query-web-api.
80+
# https://developer.vuforia.com/library/web-api/vuforia-query-web-api.
8181
# However, the tests show that this maximum size also applies to JPEG
8282
# files.
8383
max_bytes = 2 * 1024 * 1024

src/mock_vws/_requests_mock_server/mock_web_query_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
A fake implementation of the Vuforia Web Query API.
33
44
See
5-
https://library.vuforia.com/web-api/vuforia-query-web-api
5+
https://developer.vuforia.com/library/web-api/vuforia-query-web-api
66
"""
77

88
from __future__ import annotations

src/mock_vws/_requests_mock_server/mock_web_services_api.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
A fake implementation of the Vuforia Web Services API.
33
44
See
5-
https://library.vuforia.com/web-api/cloud-targets-web-services-api
5+
https://developer.vuforia.com/library/web-api/cloud-targets-web-services-api
66
"""
77

88
from __future__ import annotations
@@ -123,7 +123,7 @@ def add_target(self, request: Request, context: Context) -> str:
123123
Add a target.
124124
125125
Fake implementation of
126-
https://library.vuforia.com/web-api/cloud-targets-web-services-api#add
126+
https://developer.vuforia.com/library/web-api/cloud-targets-web-services-api#add
127127
"""
128128
try:
129129
run_services_validators(
@@ -196,7 +196,7 @@ def delete_target(self, request: Request, context: Context) -> str:
196196
Delete a target.
197197
198198
Fake implementation of
199-
https://library.vuforia.com/web-api/cloud-targets-web-services-api#delete
199+
https://developer.vuforia.com/library/web-api/cloud-targets-web-services-api#delete
200200
"""
201201
try:
202202
run_services_validators(
@@ -259,7 +259,7 @@ def database_summary(self, request: Request, context: Context) -> str:
259259
Get a database summary report.
260260
261261
Fake implementation of
262-
https://library.vuforia.com/web-api/cloud-targets-web-services-api#summary-report
262+
https://developer.vuforia.com/library/web-api/cloud-targets-web-services-api#summary-report
263263
"""
264264
try:
265265
run_services_validators(
@@ -321,7 +321,7 @@ def target_list(self, request: Request, context: Context) -> str:
321321
Get a list of all targets.
322322
323323
Fake implementation of
324-
https://library.vuforia.com/web-api/cloud-targets-web-services-api#details-list
324+
https://developer.vuforia.com/library/web-api/cloud-targets-web-services-api#details-list
325325
"""
326326
try:
327327
run_services_validators(
@@ -377,7 +377,7 @@ def get_target(self, request: Request, context: Context) -> str:
377377
Get details of a target.
378378
379379
Fake implementation of
380-
https://library.vuforia.com/web-api/cloud-targets-web-services-api#target-record
380+
https://developer.vuforia.com/library/web-api/cloud-targets-web-services-api#target-record
381381
"""
382382
try:
383383
run_services_validators(
@@ -441,7 +441,7 @@ def get_duplicates(self, request: Request, context: Context) -> str:
441441
Get targets which may be considered duplicates of a given target.
442442
443443
Fake implementation of
444-
https://library.vuforia.com/web-api/cloud-targets-web-services-api#check
444+
https://developer.vuforia.com/library/web-api/cloud-targets-web-services-api#check
445445
"""
446446
try:
447447
run_services_validators(
@@ -511,7 +511,7 @@ def update_target(self, request: Request, context: Context) -> str:
511511
Update a target.
512512
513513
Fake implementation of
514-
https://library.vuforia.com/web-api/cloud-targets-web-services-api#update
514+
https://developer.vuforia.com/library/web-api/cloud-targets-web-services-api#update
515515
"""
516516
try:
517517
run_services_validators(
@@ -616,7 +616,7 @@ def target_summary(self, request: Request, context: Context) -> str:
616616
Get a summary report for a target.
617617
618618
Fake implementation of
619-
https://library.vuforia.com/web-api/cloud-targets-web-services-api#retrieve-report
619+
https://developer.vuforia.com/library/web-api/cloud-targets-web-services-api#retrieve-report
620620
"""
621621
try:
622622
run_services_validators(

tests/mock_vws/test_get_duplicates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def test_active_flag(
165165
Targets with `active_flag` set to `False` can have duplicates.
166166
Targets with `active_flag` set to `False` are not found as duplicates.
167167
168-
https://library.vuforia.com/web-api/cloud-targets-web-services-api#check
168+
https://developer.vuforia.com/library/web-api/cloud-targets-web-services-api#check
169169
says:
170170
171171
'''

tests/mock_vws/test_get_target.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
Tests for getting a target record.
33
4-
https://library.vuforia.com/web-api/cloud-targets-web-services-api#target-record
4+
https://developer.vuforia.com/library/web-api/cloud-targets-web-services-api#target-record
55
"""
66

77
from __future__ import annotations

0 commit comments

Comments
 (0)