Skip to content
LibItsHttp_JsonTemplates.ttcn 53.3 KiB
Newer Older
Yann Garcia's avatar
Yann Garcia committed
/**
YannGarcia's avatar
YannGarcia committed
 *    @author   ETSI / STF569
 *    @version  $URL$
 *              $ID:$
 *    @desc     This module provides the custom templates for ITS HTTP based protocols.
 *    @copyright   ETSI Copyright Notification
 *                 No part may be reproduced except as authorized by written permission.
 *                 The copyright and the foregoing restriction extend to reproduction in all media.
 *                 All rights reserved.
 */
Yann Garcia's avatar
Yann Garcia committed
module LibItsHttp_JsonTemplates {
  // LibMec
  import from LibMec_TypesAndValues all;
  import from LibMec_Templates all;
  // LibMec/LocationAPI
  import from LocationAPI_TypesAndValues all;
  import from LocationAPI_Templates all;
  // LibMec/UEidentityAPI
  import from UEidentityAPI_TypesAndValues all;
  import from UEidentityAPI_Templates all;
  // LibMec/RnisAPI
  import from RnisAPI_TypesAndValues all;
  import from RnisAPI_Templates all;
  // LibMec/TrafficManagementAPI
  import from TrafficManagementAPI_TypesAndValues all;
  import from TrafficManagementAPI_Templates all;
  // LibMec/AppEnablementAPI
  import from AppEnablementAPI_TypesAndValues all;
  import from AppEnablementAPI_Templates all;
YannGarcia's avatar
YannGarcia committed
  // LibMec/Ams
  import from Ams_TypesAndValues all;
  import from Ams_Templates all;
  //LibMec/Grant
  import from Grant_TypesAndValues all;
  import from Grant_Templates all;
  //LibMec/MeoPkg
  import from MeoPkgm_TypesAndValues all;
  import from MeoPkgm_Templates all;
  //LibMec/MepmPkg
  import from MepmPkgm_TypesAndValues all;
  import from MepmPkgm_Templates all;
  
  import from AppLCM_TypesAndValues all;
  import from AppLCM_Templates all;
  // LibMec/UEAppInterfaceAPI
YannGarcia's avatar
YannGarcia committed
  import from UEAppInterfaceAPI_TypesAndValues all;
  import from UEAppInterfaceAPI_Templates all;
  // LibMec/V2XInformationServiceAPI
  import from V2XInformationServiceAPI_TypesAndValues all;
  
  // TODO Add here your custom RFCs import 
  
  // LibItsHttp
  import from LibItsHttp_JsonMessageBodyTypes all;
  import from LibItsHttp_JSONTypes all;
    
  template (value) JsonBody m_json_body_raw(
                                            in template (value) charstring p_raw
  ) := {
    raw := p_raw
  } // End of template m_json_body_raw
  template (present) JsonBody mw_json_body_raw(
                                               template (present) charstring p_raw := ?
  ) := {
    raw := p_raw
  } // End of template mw_json_body_raw

group grant_api{
  
  template (value) JsonBody m_body_json_grant_request(
    in template (value) GrantRequest p_grant_request
  ) := {
    grantRequest := p_grant_request
  } 
  
  template (present) JsonBody mw_body_json_grant_response (
  	in template (value)	Grant	p_grant_response
  ) := {
    grantResponse := p_grant_response
  }
  
  
  	template (value) JsonBody	m_body_json_grant_request_with_error (
		in template (value) GrantRequestWithError p_grant_request
    ) := {
    	grantRequestWithError := p_grant_request
  }
  
}

group meo_pkg_mgmt_api {
  template (value) JsonBody m_body_json_package_management(
    in template (value) MeoPkgm_TypesAndValues.AppPkg p_app_package_management
  ) := {
    appPackageManagement := p_app_package_management
  }
  
    template (value) JsonBody m_body_json_package_management_with_error(
    in template (value) MeoPkgm_TypesAndValues.AppPkgWithError p_app_package_management_with_error
  ) := {
    appPackageManagementWithError := p_app_package_management_with_error
  }
  
  template (present) JsonBody mw_body_json_pkg_mgmt_response(
  	in template (present) MeoPkgm_TypesAndValues.OnboardedAppPkgInfoList p_onboarded_app_pkg_mgmt_list
  ) := {
    appOnboardPackageInfoList := p_onboarded_app_pkg_mgmt_list
  }

  template (value) JsonBody m_body_json_pkgm_subscription(
  	in template (value) MeoPkgm_TypesAndValues.AppPkgSubscription p_app_pkg_subscription
  ) := {
    appPkgSubscription := p_app_pkg_subscription
  }

  template (present) JsonBody mw_body_json_pkgm_subscription_info (
  	in template (present) MeoPkgm_TypesAndValues.AppPkgSubscriptionInfo p_app_pkg_subscription_info
  ) := {
    appPkgSubscriptionInfo := p_app_pkg_subscription_info
  }

  template (value) JsonBody m_body_json_pkgm_subscription_with_error(
  	in template (value) MeoPkgm_TypesAndValues.AppPkgSubscriptionWithError p_app_pkg_subscription_with_error
  ) := {
    appPkgSubscriptionWithError := p_app_pkg_subscription_with_error
  }
  
  template (present) JsonBody mw_body_json_pkgm_subscription_info_list (
  	in template (present) MeoPkgm_TypesAndValues.AppPkgSubscriptionInfoList p_app_pkg_subscription_info_list
  ) := {
    appPkgSubscriptionInfoList := p_app_pkg_subscription_info_list
  }
  
  
  template (present) JsonBody mw_body_json_app_package_notification (
  	in template (present) MeoPkgm_TypesAndValues.AppPkgNotification p_app_pkg_notification
  ) := {
    appPkgNotification := p_app_pkg_notification
  }
  
}

group mepm_pkg_mgmt_api {
  template (value) JsonBody m_body_json_mepm_package_management(
    in template (value) MepmPkgm_TypesAndValues.AppPkg p_app_package_management
  ) := {
    appMepmPackageManagement := p_app_package_management
  }
  
    template (value) JsonBody m_body_json_mepm_package_management_with_error(
    in template (value) MepmPkgm_TypesAndValues.AppPkgWithError p_app_mepm_package_management_with_error
  ) := {
    appMepmPackageManagementWithError := p_app_mepm_package_management_with_error
  }
  
  template (present) JsonBody mw_body_json_mepm_pkg_mgmt_response_list(
  	in template (present) MepmPkgm_TypesAndValues.OnboardedAppPkgInfoList p_onboarded_app_mepm_pkg_mgmt_list
  ) := {
    appOnboardMepmPackageInfoList := p_onboarded_app_mepm_pkg_mgmt_list
  }

  template (present) JsonBody mw_body_json_mepm_pkg_mgmt_response(
  	in template (present) MepmPkgm_TypesAndValues.OnboardedAppPkgInfo p_onboarded_app_mepm_pkg_mgmt
  ) := {
    appOnboardMepmPackageInfo := p_onboarded_app_mepm_pkg_mgmt
  }


  template (value) JsonBody m_body_json_mepm_pkgm_subscription(
  	in template (value) MepmPkgm_TypesAndValues.AppPkgSubscription p_app_mepm_pkg_subscription
  ) := {
    appMepmPkgSubscription := p_app_mepm_pkg_subscription
  }

  template (present) JsonBody mw_body_json_mepm_pkgm_subscription_info (
  	in template (present) MepmPkgm_TypesAndValues.AppPkgSubscriptionInfo p_app_mepm_pkg_subscription_info
  ) := {
    appMepmPkgSubscriptionInfo := p_app_mepm_pkg_subscription_info
  }

  template (value) JsonBody m_body_json_mepm_pkgm_subscription_with_error(
  	in template (value) MepmPkgm_TypesAndValues.AppPkgSubscriptionWithError p_app_mepm_pkg_subscription_with_error
  ) := {
    appMepmPkgSubscriptionWithError := p_app_mepm_pkg_subscription_with_error
  }
  
  template (present) JsonBody mw_body_json_mepm_pkgm_subscription_info_list (
  	in template (present) MepmPkgm_TypesAndValues.AppPkgSubscriptionInfoList p_app_mepm_pkg_subscription_info_list
  ) := {
    appMepmPkgSubscriptionInfoList := p_app_mepm_pkg_subscription_info_list
  }
  
  
  template (present) JsonBody mw_body_json_mepm_app_package_notification (
  	in template (present) MepmPkgm_TypesAndValues.AppPkgNotification p_app_mepm_pkg_notification
  ) := {
    appMepmPkgNotification := p_app_mepm_pkg_notification
Loading
Loading full blame…