Last active
December 6, 2023 16:24
-
-
Save 9b/f3f3e4d831bddcf0ab3f8a32b471893b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
openapi: 3.0.1 | |
info: | |
title: Blockade.io | |
description: Block suspicious and malicious indicators in participating browsers | |
version: "v1" | |
servers: | |
- url: https://api.blockade.io/ | |
paths: | |
/get-indicators: | |
get: | |
operationId: blockadeIoGetIndicators | |
summary: Get indicators from blockade.io | |
responses: | |
"200": | |
description: OK | |
content: | |
application/json: | |
schema: | |
$ref: "#/components/schemas/blockadeIoGetIndicatorsResponse" | |
/admin/add-indicators: | |
post: | |
operationId: blockadeIoAddIndicators | |
summary: Add indicators to blockade.io | |
requestBody: | |
required: true | |
content: | |
application/json: | |
schema: | |
$ref: "#/components/schemas/blockadeIoAddIndicatorsRequest" | |
responses: | |
"200": | |
description: OK | |
content: | |
application/json: | |
schema: | |
$ref: "#/components/schemas/blockadeIoGetIndicatorsResponse" | |
components: | |
schemas: | |
blockadeIoGetIndicatorsResponse: | |
type: object | |
properties: | |
indicators: | |
type: array | |
items: | |
type: string | |
description: List of indicators | |
indicatorCount: | |
type: number | |
description: Total number of indicators | |
success: | |
type: boolean | |
description: Request status | |
blockadeIoAddIndicatorsRequest: | |
type: object | |
required: | |
- api_key | |
- indicators | |
properties: | |
email: | |
type: string | |
description: Email of the user | |
required: true | |
api_key: | |
type: string | |
description: API key of the user | |
required: true | |
indicators: | |
type: array | |
description: List of indicators | |
items: | |
type: string | |
required: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment