Wiki source code of Voiko rajoittaa API:n tiettyjä endpointteja jättämällä ne pois swagger-kuvauksesta?
Last modified by Xwiki VePa on 2024/02/07 07:38
Hide last authors
author | version | line-number | content |
---|---|---|---|
2.1 | 1 | == Problem == | |
2 | |||
3 | Voiko rajoittaa API:n tiettyjä endpointteja jättämällä ne pois swagger-kuvauksesta? | ||
4 | |||
5 | == Solution == | ||
6 | |||
7 | Rajoitus pitää tehdä Policyn avulla haluttuihin path:n/polkuihin, jotta saa rajoitettua pääsyä osaan rajapinnasta. Pelkkä swagger kuvauksen muokkaaminen ei estä käyttöä. | ||
8 | |||
9 | {{panel bgColor="#fff"}} | ||
10 | \\ | ||
11 | {{/panel}} | ||
12 | |||
13 | == Related articles == | ||
14 | |||
15 | Related articles appear here based on the labels you select. Click to edit the macro and add or change labels. | ||
16 | |||
17 | |||
18 | |||
19 | {{contentbylabel showLabels="false" max="5" spaces="SO" showSpace="false" sort="modified" reverse="true" type="page" cql="label = ~"kb-troubleshooting-article~" and type = ~"page~" and space = ~"SO~"" labels="kb-troubleshooting-article"/}} | ||
20 | |||
21 | \\ | ||
22 | |||
23 | {{details hidden="true"}} | ||
24 | (% class="auto-cursor-target" %) | ||
25 | \\ | ||
26 | |||
27 | (% class="wrapped" %) | ||
28 | |=((( | ||
29 | Related issues | ||
30 | )))|((( | ||
31 | \\ | ||
32 | ))) | ||
33 | |||
34 | (% class="auto-cursor-target" %) | ||
35 | \\ | ||
36 | {{/details}} | ||
37 | |||
38 | \\ | ||
39 | |||
40 | (% class="auto-cursor-target" %) | ||
41 | \\ |