Use origin_add instead of deprecated origin_add_one endpoint
It's deprecated and triggers lots on warning in staging (storage at least):
Jun 29 13:55:06 storage0 gunicorn3[15758]: /usr/lib/python3/dist-packages/swh/core/api/__init__.py:453: DeprecationWarning: Call to deprecated method origin_add_one. (Use origin_add([origin]) instead)
Jun 29 13:55:06 storage0 gunicorn3[15758]: return obj_meth(**kw)
Jun 29 13:55:06 storage0 gunicorn3[15758]: /usr/lib/python3/dist-packages/swh/core/api/__init__.py:453: DeprecationWarning: Call to deprecated method origin_add_one. (Use origin_add([origin]) instead)
Jun 29 13:55:06 storage0 gunicorn3[15758]: return obj_meth(**kw)
Jun 29 13:55:06 storage0 gunicorn3[15758]: /usr/lib/python3/dist-packages/swh/core/api/__init__.py:453: DeprecationWarning: Call to deprecated method origin_add_one. (Use origin_add([origin]) instead)
Jun 29 13:55:06 storage0 gunicorn3[15758]: return obj_meth(**kw)
Jun 29 13:55:06 storage0 gunicorn3[15758]: /usr/lib/python3/dist-packages/swh/core/api/__init__.py:453: DeprecationWarning: Call to deprecated method origin_add_one. (Use origin_add([origin]) instead)
Jun 29 13:55:06 storage0 gunicorn3[15758]: return obj_meth(**kw)
Jun 29 13:55:06 storage0 gunicorn3[15758]: /usr/lib/python3/dist-packages/swh/core/api/__init__.py:453: DeprecationWarning: Call to deprecated method origin_add_one. (Use origin_add([origin]) instead)
Jun 29 13:55:06 storage0 gunicorn3[15758]: return obj_meth(**kw)
Jun 29 13:55:06 storage0 gunicorn3[15758]: /usr/lib/python3/dist-packages/swh/core/api/__init__.py:453: DeprecationWarning: Call to deprecated method origin_add_one. (Use origin_add([origin]) instead)
Jun 29 13:55:06 storage0 gunicorn3[15758]: return obj_meth(**kw)
Jun 29 13:55:06 storage0 gunicorn3[15758]: /usr/lib/python3/dist-packages/swh/core/api/__init__.py:453: DeprecationWarning: Call to deprecated method origin_add_one. (Use origin_add([origin]) instead)
Jun 29 13:55:06 storage0 gunicorn3[15758]: return obj_meth(**kw)
Jun 29 13:55:06 storage0 gunicorn3[15758]: /usr/lib/python3/dist-packages/swh/core/api/__init__.py:453: DeprecationWarning: Call to deprecated method origin_add_one. (Use origin_add([origin]) instead)
Jun 29 13:55:06 storage0 gunicorn3[15758]: return obj_meth(**kw)
Depends on !97 (closed)
Test Plan
tox (failing same reason as depending diff for now)
Migrated from D3370 (view on Phabricator)