From cfd2f784c23d6665a52a00a5ee5144a5a818c72b Mon Sep 17 00:00:00 2001
From: Gerhard Jungwirth
+Read the Part SSL Certificates under the Chapter Security and Maintenance in the SPCE documentation
+for more information about SSL Certificates.
+
You cannot request the entire collection at once, but instead you can simply page through the results. The response provides prev and next links you can follow to get the next page. @@ -179,7 +179,7 @@ Content-Type: application/hal+json; profile="http://purl.org/sipwise/ngcp-api/" INCLUDE helpers/api_req_res.tt request=request response=response level=level+3; -%] -
+ [% END -%] [% IF col.item_actions.grep('^GET$').size -%] @@ -281,7 +281,7 @@ Preference-Applied: return=minimal'; [% IF col.item_actions.grep('^PATCH$').size -%]+
[% props = ''; rem = 0; rep = 0; FOREACH p IN col.fields; @@ -398,7 +398,7 @@ Preference-Applied: return=minimal'; INCLUDE helpers/api_req_res.tt request=request response=response level=level+3; -%] - + [% END -%] [% IF col.item_actions.grep('^DELETE$').size -%] diff --git a/share/templates/api/root/intro.tt b/share/templates/api/root/intro.tt index b76556b673..f19d8ef32e 100644 --- a/share/templates/api/root/intro.tt +++ b/share/templates/api/root/intro.tt @@ -77,15 +77,18 @@ Some collections define query paramters to filter the output. Typical use cases Query parameters are appended to the URL like in the following example:
-curl -X GET 'https://example.org:1443/api/somecollection/?param_one=1¶m2=something
+curl -X GET 'https://example.org:1443/api/somecollection/?param_one=1¶m2=something'
Some query parameters allow wildcard/pattern matching, which is expressed by a '*' like this:
-curl -X GET 'https://example.org:1443/api/somecollection/?param=*something*
+curl -X GET 'https://example.org:1443/api/somecollection/?param=*something*'
+Note: this examples do not yet contain authentication and will therefore not work on a standard installation. To read more
+about that go to the Chapter Authentication.
+
- Note that you MUST pass the following additional headers for this request: + You can pass the following additional headers for this request:
This header tells the API which type of response the client expects. The following values are possible: