Module ocs_rest_res_nrf

This library module implements resource handling functions for a REST server in the ocs application.

Copyright © 2016 - 2026 SigScale Global Inc.

Description

This library module implements resource handling functions for a REST server in the ocs application.

Function Index

content_types_accepted/0Provides list of resource representations accepted.
content_types_provided/0Provides list of resource representations available.
initial_nrf/2Respond to POST /nrf-rating/v1/ratingdata.
update_nrf/3Respond to POST /nrf-rating/v1/ratingdata/{RatingDataRef}/update.
release_nrf/3Respond to POST /nrf-rating/v1/ratingdata/{RatingDataRef}/release.
session_id/3*Construct session attributes which uniquely identify a rating session.

Function Details

content_types_accepted/0

content_types_accepted() -> ContentTypes

Provides list of resource representations accepted.

content_types_provided/0

content_types_provided() -> ContentTypes

Provides list of resource representations available.

initial_nrf/2

initial_nrf(ModData, RatingDataRequest) -> RatingDataResponse

Respond to POST /nrf-rating/v1/ratingdata.

Rate an intial Nrf Request.

To do

update_nrf/3

update_nrf(ModData, RatingDataRef, RatingDataRequest) -> RatingDataResponse

Respond to POST /nrf-rating/v1/ratingdata/{RatingDataRef}/update. Rate an interim Nrf Request.

release_nrf/3

release_nrf(ModData, RatingDataRef, RatingDataRequest) -> RatingDataResponse

Respond to POST /nrf-rating/v1/ratingdata/{RatingDataRef}/release.

Rate a final Nrf Request.

session_id/3 *

session_id(RatingDataRef, ChargingKeyArg, UpfIdArg) -> SessionAttributes

Construct session attributes which uniquely identify a rating session.


Generated by EDoc