forked from jdegre/5GC_APIs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TS26512_M5_ConsumptionReporting.yaml
83 lines (83 loc) · 2.48 KB
/
TS26512_M5_ConsumptionReporting.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
openapi: 3.0.0
info:
title: M5_ConsumptionReporting
version: 2.0.0
description: |
5GMS AF M5 Consumption Reporting API
© 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC).
All rights reserved.
tags:
- name: M5_ConsumptionReporting
description: '5G Media Streaming: Media Session Handling (M5) APIs: Consumption Reporting'
externalDocs:
description: 'TS 26.512 V17.1.0; 5G Media Streaming (5GMS); Protocols'
url: 'https://www.3gpp.org/ftp/Specs/archive/26_series/26.512/'
servers:
- url: '{apiRoot}/3gpp-m5/v2'
variables:
apiRoot:
default: https://example.com
description: See 3GPP TS 29.512 clause 6.1.
paths:
/consumption-reporting/{aspId}:
parameters:
- name: aspId
in: path
required: true
schema:
$ref: 'TS29514_Npcf_PolicyAuthorization.yaml#/components/schemas/AspId'
description: 'See 3GPP TS 26.512 clause 11.3.2.'
post:
operationId: submitConsumptionReport
summary: 'Submit a Consumption Report'
requestBody:
description: 'A Consumption Report'
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ConsumptionReport'
responses:
'204':
description: 'Consumption Report Accepted'
'400':
description: 'Bad Request'
'415':
description: 'Unsupported Media Type'
components:
schemas:
ConsumptionReport:
type: object
required:
- mediaPlayerEntry
- reportingClientId
- consumptionReportingUnits
properties:
mediaPlayerEntry:
type: string
reportingClientId:
type: string
consumptionReportingUnits:
type: array
items:
$ref: '#/components/schemas/ConsumptionReportingUnit'
ConsumptionReportingUnit:
type: object
required:
- mediaConsumed
- startTime
- duration
properties:
mediaConsumed:
type: string
mediaEndpointAddress:
$ref: 'TS26512_CommonData.yaml#/components/schemas/EndpointAddress'
startTime:
$ref: 'TS29571_CommonData.yaml#/components/schemas/DateTime'
duration:
$ref: 'TS29571_CommonData.yaml#/components/schemas/DurationSec'
locations:
type: array
items:
$ref: 'TS26512_CommonData.yaml#/components/schemas/TypedLocation'
minItems: 1