2
2
Login
3
3
=====
4
4
5
- Users can submit a ``/login `` request, for the programmatic-api:
5
+ Users can submit a ``/login `` request, for the programmatic rest -api:
6
6
7
7
.. code :: python
8
8
@@ -19,9 +19,8 @@ Users can submit a ``/login`` request, for the programmatic-api:
19
19
)
20
20
token = login.json[' access_token' ]
21
21
22
- The returned ``token `` value, can be supplied on successive requests, to a rest
23
- endpoint, expecting the corresponding ``token `` value. For example, supplying
24
- a valid token, to the ``/load-data `` endpoint:
22
+ The returned ``token ``, will be required to be supplied on successive requests.
23
+ For example, supplying a valid token, to the ``/load-data `` endpoint:
25
24
26
25
.. code :: python
27
26
@@ -48,17 +47,10 @@ a valid token, to the ``/load-data`` endpoint:
48
47
data = payload
49
48
)
50
49
51
- The following sessions, can be implemented with the above token, or omitted as
52
- an anonymous user:
50
+ **Note: ** all programmatic rest endpoints (except ``/login ``), requires a valid
51
+ token to be supplied, in order to properly submit a corresponding request.
52
+
53
+ The following sessions, can be implemented with the above token:
53
54
54
55
- `data-new <https://github.com/jeff1evesque/machine-learning/blob/master/doc/programmatic_interface/data/data_new.rst >`_
55
56
- `data-append <https://github.com/jeff1evesque/machine-learning/blob/master/doc/programmatic_interface/data/data_new.rst >`_
56
-
57
- The following unit tests, provides examples of the `flask-jwt <http://flask-jwt-extended.readthedocs.io/en/latest/ >`_
58
- implementation:
59
-
60
- - |pytest_6_user_session.py |_
61
-
62
- .. |pytest_6_user_session.py | replace :: ``pytest_6_user_session.py ``
63
- .. _pytest_6_user_session.py : https://github.com/jeff1evesque/machine-learning/tree/master/test/live_server/1_authentication/pytest_6_user_login.py
64
-
0 commit comments