Nephila RiskStore

<back to all web services

GetMetaRiskRequest

General
Requires Authentication
The following routes are available for this service:
GET/api/riskstore/metariskGet meta risks and meta risk groups, used by the Excel Add-On
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Nephila.RiskStore.ServiceModel.Requests
Imports Nephila.RiskStore.ServiceModel.Types

Namespace Global

    Namespace Nephila.RiskStore.ServiceModel.Requests

        Public Partial Class GetMetaRiskRequest
            Implements IGet
        End Class

        Public Partial Class GetMetaRiskResponse
            Public Overridable Property MetaRisks As List(Of MetaRiskIdentifier)
            Public Overridable Property MetaRiskGroups As List(Of MetaRiskGroupMapping)
        End Class
    End Namespace

    Namespace Nephila.RiskStore.ServiceModel.Types

        Public Partial Class MetaRiskGroupMapping
            Public Overridable Property Id As Integer
            Public Overridable Property Name As String
            Public Overridable Property MetaRisks As List(Of MetaRiskIdentifier)
        End Class

        Public Partial Class MetaRiskIdentifier
            Public Overridable Property Id As Integer
            Public Overridable Property Name As String
        End Class
    End Namespace
End Namespace

VB.NET GetMetaRiskRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /api/riskstore/metarisk HTTP/1.1 
Host: riskstoreng-dev.nephila.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"metaRisks":[{"id":0,"name":"String"}],"metaRiskGroups":[{"id":0,"name":"String","metaRisks":[{"id":0,"name":"String"}]}]}