16 lines
411 B
Org Mode
16 lines
411 B
Org Mode
|
* Templates
|
||
|
* Testing / CLI Access
|
||
|
Access via the commandline (CLI) can be done using curl or
|
||
|
httpie. In our examples we will use httpie.
|
||
|
** Checkout out the API
|
||
|
#+BEGIN_SRC sh
|
||
|
http localhost:8000/api/
|
||
|
#+END_SRC
|
||
|
** Authenticate via ldap user in password store
|
||
|
#+BEGIN_SRC sh
|
||
|
http --auth nicocustomer:$(pass ldap/nicocustomer) localhost:8000/api/
|
||
|
#+END_SRC
|
||
|
|
||
|
* URLs
|
||
|
- api/ - the rest API
|