Skip to content

Commit

Permalink
Merge all openapi specs into single file
Browse files Browse the repository at this point in the history
  • Loading branch information
raikbitters committed Jan 24, 2024
1 parent 9f431eb commit 261dc83
Show file tree
Hide file tree
Showing 9 changed files with 322 additions and 385 deletions.
223 changes: 0 additions & 223 deletions api/openapi/activities.yaml

This file was deleted.

57 changes: 0 additions & 57 deletions api/openapi/api-keys.yaml

This file was deleted.

53 changes: 53 additions & 0 deletions api/openapi/models/activity.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
Activity:
title: Activity
type: object
description: activity details
properties:
id:
type: integer
format: int64
minimum: 1
created_at:
type: string
format: date-time
event_name:
type: string
object_id:
type: integer
exclusiveMinimum: false
exclusiveMaximum: false
format: int64
minimum: 1
object_name:
type: string
object_type:
type: string
project_id:
type: integer
format: int64
exclusiveMinimum: false
minimum: 1
project_name:
type: string
subject_name:
type: string
subject_type:
type: string
details:
type: object
properties:
history:
type: array
items:
$ref: "#/HistoryField"

HistoryField:
title: HistoryField
type: object
properties:
field:
type: string
old_value:
type: string
new_value:
type: string
35 changes: 35 additions & 0 deletions api/openapi/models/apiKey.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
ApiKeyMetadata:
title: API Key metadata
type: object
description: ReportPortal only stores metadata and a hash of the API Key.
properties:
id:
type: integer
description: Internal identifier
name:
type: string
description: API Key unique name
user_id:
type: integer
description: API Key owner
created_at:
type: string
format: date-time
description: Date time with milliseconds
example: '2019-07-30T06:43:40.252Z'
last_used_at:
type: string
format: date-time
example: '2019-07-30T06:43:40.252Z'
description: Date time with milliseconds

ApiKey:
title: API Key
description: 'Generated API key, granted once after creation.'
allOf:
- $ref: '#/ApiKeyMetadata'
- type: object
properties:
api_key:
type: string
description: Generated API Key
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
title: Error
x-stoplight:
id: px0fsay46csgt
type: object
properties:
code:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
type: object
x-stoplight:
id: osmhtey50l0ov
title: Offset-based
description: Offset-based pagination
properties:
Expand Down
Loading

0 comments on commit 261dc83

Please sign in to comment.