Skip to content

Instantly share code, notes, and snippets.

@9b
Last active December 6, 2023 16:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 9b/f3f3e4d831bddcf0ab3f8a32b471893b to your computer and use it in GitHub Desktop.
Save 9b/f3f3e4d831bddcf0ab3f8a32b471893b to your computer and use it in GitHub Desktop.
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:
- email
- 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