generated from finos-labs/project-blueprint
-
Notifications
You must be signed in to change notification settings - Fork 60
/
openapi.yaml
58 lines (57 loc) · 1.46 KB
/
openapi.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
openapi: 3.0.0
info:
title: FINOS TraderX | Reference Data Service
description: The Reference Data API description
version: '1.0'
contact: {}
paths:
/stocks:
get:
operationId: StocksController_findAll
parameters: []
responses:
'200':
description: 'All Securities'
content:
application/json:
schema:
type: "array"
items:
$ref: '#/components/schemas/Security'
example:
- ticker: 'SSSS'
companyName: 'SSSS Corporation, Inc.'
- ticker: 'YYYX'
companyName: 'YYYX Corp.'
- ticker: 'XXXY'
companyName: 'XXXY Corporation, Inc.'
/stocks/{ticker}:
get:
operationId: StocksController_findByTicker
parameters:
- name: ticker
in: "path"
required: true
schema:
type: string
maxLength: 100
responses:
'200':
description: 'Single Security'
content:
application/json:
schema:
$ref: '#/components/schemas/Security'
tags: []
components:
schemas:
Security:
type: object
properties:
ticker:
type: string
example: 'XXXY'
pattern: '^[A-Z]{3,4}$'
companyName:
type: string
example: 'XXXY Corporation, Inc.'