lib/swagger/plex-vernonkeenan.yaml

601 lines
15 KiB
YAML
Raw Permalink Normal View History

2023-04-06 01:28:58 +00:00
swagger: "2.0"
info:
version: 0.3.4
title: "plex"
description: "Cross-Schema Retrieval Microservice"
termsOfService: "https://salesforcedevops.net/terms/"
contact:
email: "vern@vernonkeenan.com"
license:
name: "Proprietary - Copyright (c) 2018-2024 by Vernon Keenan"
2023-04-06 01:28:58 +00:00
securityDefinitions:
ApiKeyAuth:
type: "apiKey"
in: "header"
name: "X-API-Key"
schemes:
- "http"
basePath: "/v1"
host: "plex.vernonkeenan.com:8080"
consumes:
- "application/json"
produces:
- "application/json"
parameters:
2023-04-11 14:59:35 +00:00
slugQuery:
description: The slug of the item to retrieve
2023-04-06 01:28:58 +00:00
in: query
2023-04-11 14:59:35 +00:00
name: slug
2023-04-06 01:28:58 +00:00
required: false
2023-04-11 14:59:35 +00:00
type: string
2023-04-06 01:28:58 +00:00
CompanyIdQuery:
description: Record Id of an Company
in: query
name: companyId
required: false
type: string
limitQuery:
description: "How many objects to return at one time"
format: int64
in: query
name: limit
required: false
type: integer
offsetQuery:
description: How many objects to skip?
format: int64
in: query
name: offset
required: false
type: integer
responses:
AccessForbidden:
description: "Access forbidden, Company lacks access"
schema:
$ref: "#/definitions/Error"
InvalidDataError:
description: Invalid data was sent
schema:
$ref: "#/definitions/InvalidError"
NotFound:
description: Resource was not found
headers:
Access-Control-Allow-Origin:
type: string
schema:
$ref: "#/definitions/Error"
ServerError:
description: Server Internal Error
headers:
Access-Control-Allow-Origin:
type: string
schema:
$ref: "#/definitions/Error"
Unauthorized:
description: "Access unauthorized, invalid API-KEY was used"
schema:
$ref: "#/definitions/Error"
UnprocessableEntity:
description: "Unprocessable Entity, likely a bad parameter"
schema:
$ref: "#/definitions/Error"
CompanyResponse:
description: The SalesforceDevops.net Company Object
schema:
$ref: "#/definitions/CompanyResponse"
paths:
/companies:
get:
2023-04-07 00:34:49 +00:00
description: Return all or a single company fully hydrated object
2023-04-06 01:28:58 +00:00
operationId: getCompanies
parameters:
- $ref: "#/parameters/CompanyIdQuery"
2023-04-11 14:59:35 +00:00
- $ref: "#/parameters/slugQuery"
2023-04-06 01:28:58 +00:00
responses:
"200":
$ref: "#/responses/CompanyResponse"
"401":
$ref: "#/responses/Unauthorized"
"403":
$ref: "#/responses/AccessForbidden"
"404":
$ref: "#/responses/NotFound"
"422":
$ref: "#/responses/UnprocessableEntity"
"500":
$ref: "#/responses/ServerError"
security:
- ApiKeyAuth: []
summary: Get a list of companies
tags:
- Companies
definitions:
Address:
properties:
City:
description: City
type: string
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
Country:
description: Country full name
type: string
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
CountryCode:
description: Country Code
type: string
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
PostalCode:
description: Postal Code
type: string
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
State:
description: State full name
type: string
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
StateCode:
description: State Code
type: string
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
Street:
description: Street number and name
type: string
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
type: object
Company:
properties:
ID:
description: Company Id
type: string
2023-04-07 00:34:49 +00:00
AccountID:
description: Account Id
type: string
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
AccountNumber:
description: Company Number
type: string
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
AccountSource:
description: The marketing origin of this Company
type: string
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
Active:
2023-04-30 04:48:40 +00:00
type: boolean
x-nullable: true
2023-04-06 01:28:58 +00:00
AnnualRevenue:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: Annual Revenue Estimate
format: double
type: number
CloudRevenueTotal:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
type: number
CloudType:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: The type of cloud company
type: string
CloudYear:
description: The year company started cloud revenue
type: string
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-07 00:34:49 +00:00
CrunchbaseURL:
description: Company Crunchbase URL
type: string
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
Description:
description: Description of the Company
type: string
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
EarningsCall:
description: Earnings Call Date
type: string
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
Email:
description: Main Company Email
type: string
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
EquityFunding:
description: The amount of equity EquityFunding
type: number
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
Facebook:
description: Company Facebook URL
type: string
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
Fax:
description: Fax number
type: string
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
FoundedDate:
description: Date company founded
type: string
2023-04-30 04:48:40 +00:00
x-nullable: true
FullDescription:
description: Full Description of the Company
type: string
x-nullable: true
2023-04-06 01:28:58 +00:00
IPODate:
description: IPO Date
type: string
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
ImageAltText:
type: string
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
ImageURL:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
type: string
Industries:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: Industries
type: string
Industry:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: Industry
type: string
LinkedIn:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: Company LinkedIn URL
type: string
2023-04-07 00:34:49 +00:00
ListingAddress:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-07 00:34:49 +00:00
$ref: "#/definitions/Address"
2023-04-06 01:28:58 +00:00
Location:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: Headquarters Location Description
type: string
Logo:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: Company Logo URL
type: string
MarketCapitalization:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: Market Capitalization
type: number
Name:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: Company Name
type: string
NumberInvestments:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: Number of Investments
type: number
NumberOfEmployees:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: Employee Count Estimate
format: int64
type: number
Ownership:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: Ownership
type: string
ParentID:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: Parent Company
type: string
Phone:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: Phone
type: string
Publish:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: Publish this record?
type: boolean
SalesforceFirst:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: A Salesforce-First company?
type: boolean
Slug:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: Slug
type: string
TagLine:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: Company tagline
type: string
TickerSymbol:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: Ticker Symbol
type: string
Twitter:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: Twitter URL
type: string
Type:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: Type
type: string
Website:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: Website
type: string
YearStarted:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: Year Started
type: string
CompanyProducts:
description: Company Products
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
type: array
items:
$ref: "#/definitions/CompanyProduct"
FinancialStatements:
description: Financial Statements
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
type: array
items:
$ref: "#/definitions/FinancialStatement"
IndustryCompanies:
description: Similar Companies
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
type: array
items:
$ref: "#/definitions/IndustryCompany"
type: object
FinancialStatement:
type: object
description: A financial statement for a company
properties:
ID:
description: Record Id
type: string
AccessNumber:
description: EDGAR Access Number
type: string
AccountID:
description: Account ID
type: string
CloudRevenue:
description: Cloud Revenue
type: number
CreatedByID:
description: Created By User ID
type: string
CreatedDate:
description: Created Date
type: string
Description:
description: Description
type: string
EdgarURL:
description: EDGAR URL
type: string
FilingType:
description: Filing Type
type: string
GrossProfit:
description: Gross Profit
type: number
LastModifiedByID:
description: Last Modified By User ID
type: string
LastModifiedDate:
description: Last Modified Date
type: string
NetIncome:
description: Net Income
type: number
PeriodEndDate:
description: Period End Date
type: string
TotalRevenue:
description: Total Revenue
type: number
Year:
description: Year
type: string
CompanyProduct:
description: A software product or service vended by a Company
properties:
ID:
description: Record Id
type: string
AccountID:
description: ID of the Company that owns this Product
type: string
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
CreatedByID:
description: Created By User ID
type: string
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
CreatedDate:
description: Created Date
type: string
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
Description:
description: Description of product
type: string
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
FullDescription:
description: Full Description of product
type: string
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
ImageAltText:
description: Image Alt Text
type: string
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
ImageURL:
description: Image URL
type: string
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
Industries:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: Industries
type: array
items:
$ref: "#/definitions/Industry"
LastModifiedByID:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: Last Modified By User ID
type: string
LastModifiedDate:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: Last Modified Date
type: string
Logo:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: Logo
type: string
Name:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: Product Name
type: string
ProductVideoID:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: Product Video ID
type: string
Published:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: Published
type: boolean
SalesforceSpecific:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: Salesforce Specific
type: boolean
Slug:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: Slug
type: string
TagLine:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: TagLine
type: string
URL:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: Website
type: string
type: object
Industry:
description: An industry that is being researched
properties:
ID:
description: Record Id
type: string
Companies:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: The AccountIDs of the Companies in this Industry
type: array
items:
type: string
CompanyProducts:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: The list of Products in this industry
type: array
items:
$ref: "#/definitions/CompanyProduct"
CreatedByID:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: Created By User ID
type: string
CreatedDate:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: Created Date
type: string
Description:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: Industry Description
type: string
ImageAltText:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: Image Alt Text
type: string
ImageURL:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: Image URL
type: string
LastModifiedByID:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: Last Modified By User ID
type: string
LastModifiedDate:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: Last Modified Date
type: string
Level:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: The hierarchical level of this Industry
type: string
Logo:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: Logo
type: string
Name:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: Industry Name
type: string
ParentIndustryID:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: The ID of the Parent Industry
type: string
Path:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: The full path of this industry, including Parent
type: string
Slug:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: The CMS Slug for this Industry
type: string
TagLine:
2023-04-30 04:48:40 +00:00
x-nullable: true
2023-04-06 01:28:58 +00:00
description: TagLine
type: string
type: object
IndustryCompany:
description: Junction object between Industry and Company
properties:
ID:
description: Record Id
type: string
CompanyID:
type: string
CompanyName:
type: string
CompanySlug:
type: string
CompanyWebsite:
type: string
IndustryID:
type: string
IndustryName:
type: string
IndustrySlug:
type: string
IndustryTagLine:
type: string
LastModifiedByID:
description: Last Modified By User ID
type: string
LastModifiedDate:
description: Last Modified Date
type: string
Path:
type: string
type: object
CompanyRequest:
description: An array of Company objects with Contacts
properties:
Data:
items:
$ref: "#/definitions/Company"
type: array
type: object
CompanyResponse:
description: An array of Company objects with Contacts
properties:
Data:
items:
$ref: "#/definitions/Company"
type: array
Meta:
$ref: "../../lib/swagger/defs/response-meta.yaml#/ResponseMeta"
type: object
Error:
$ref: "../../lib/swagger/defs/error.yaml#/Error"
InvalidError:
allOf:
- $ref: "#/definitions/Error"
- properties:
details:
items:
type: string
type: array
type: object