@@ -27,7 +27,11 @@ def cli(ctx, url):
2727def get (ctx ):
2828 """Perform a SCIM GET request.
2929
30- https://www.rfc-editor.org/rfc/rfc7644#section-3.4.1
30+ Data passed in JSON format to stdin is sent as request arguments::
31+
32+ echo '{"foo": "bar"}' | scim https://scim.example get
33+
34+ Details on: https://www.rfc-editor.org/rfc/rfc7644#section-3.4.1
3135 """
3236
3337 response = requests .get (
@@ -44,6 +48,10 @@ def get(ctx):
4448def post (ctx ):
4549 """Perform a SCIM POST request.
4650
51+ Data passed in JSON format to stdin is sent as request payload::
52+
53+ echo '{"foo": "bar"}' | scim https://scim.example post
54+
4755 https://www.rfc-editor.org/rfc/rfc7644#section-3.3
4856 """
4957
@@ -61,6 +69,10 @@ def post(ctx):
6169def put (ctx ):
6270 """Perform a SCIM PUT request.
6371
72+ Data passed in JSON format to stdin is sent as request payload::
73+
74+ echo '{"foo": "bar"}' | scim https://scim.example put
75+
6476 https://www.rfc-editor.org/rfc/rfc7644#section-3.5.1
6577 """
6678
@@ -78,6 +90,10 @@ def put(ctx):
7890def patch (ctx ):
7991 """Perform a SCIM PATCH request.
8092
93+ Data passed in JSON format to stdin is sent as request payload::
94+
95+ echo '{"foo": "bar"}' | scim https://scim.example patch
96+
8197 https://www.rfc-editor.org/rfc/rfc7644#section-3.5.2
8298 """
8399
@@ -95,6 +111,10 @@ def patch(ctx):
95111def delete (ctx ):
96112 """Perform a SCIM DELETE request.
97113
114+ Data passed in JSON format to stdin is sent as request payload::
115+
116+ echo '{"foo": "bar"}' | scim https://scim.example delete
117+
98118 https://www.rfc-editor.org/rfc/rfc7644#section-3.6
99119 """
100120
0 commit comments