-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from f5devcentral/class4-api
test yaml
- Loading branch information
Showing
5 changed files
with
83 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,62 @@ | ||
Enable API discovery | ||
==================== | ||
Enable API Validation | ||
===================== | ||
|
||
Enable Endpoint Discovery | ||
------------------------- | ||
In the previous section, we enabled AOU Protection. API Protection is based on rules (allow, deny), but API Validation goes deeper into the validation. | ||
|
||
API Validation validates the requests and the responses, but also the content (JSON payload) based on the OpenAPI Specifications. | ||
|
||
Enable PII Discovery | ||
-------------------- | ||
As a reminder, this is the difference between Protection and API Validation. | ||
|
||
.. image:: ../pictures/slide-api-protection.png | ||
:align: center | ||
:scale: 40% | ||
|
||
.. note:: As an example, API Validation validates if the value of a JSON key matches the specifications (integer, string, array ...) | ||
|
||
Example below | ||
|
||
.. code-block:: YAML | ||
:emphasize-lines: 24, 36, 38 | ||
/adjectives: | ||
get: | ||
description: List all adjectives | ||
tags: | ||
- adjectives | ||
responses: | ||
'200': | ||
description: a list of adjectives with their index | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/Adjectives" | ||
post: | ||
description: create an adjective | ||
tags: | ||
- adjectives | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
name: | ||
type: string | ||
example: | ||
name: worried | ||
responses: | ||
'201': | ||
description: adjective created | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
id: | ||
type: integer | ||
name: | ||
type: string | ||
example: | ||
id: 4 | ||
name: worried | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,10 @@ | ||
API Discovery outcomes | ||
====================== | ||
Enable API discovery | ||
==================== | ||
|
||
Endpoint Discovery | ||
------------------ | ||
Enable Endpoint Discovery | ||
------------------------- | ||
|
||
|
||
PII Discovery | ||
------------- | ||
Enable PII Discovery | ||
-------------------- | ||
|
||
|
||
|
||
Authentication Discovery | ||
------------------------ | ||
|
||
|
||
AI/ML Security Posture | ||
---------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
API Discovery outcomes | ||
====================== | ||
|
||
Endpoint Discovery | ||
------------------ | ||
|
||
|
||
PII Discovery | ||
------------- | ||
|
||
|
||
|
||
Authentication Discovery | ||
------------------------ | ||
|
||
|
||
AI/ML Security Posture | ||
---------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.