| Requires the role: | Riskstore.Admin |
| POST | /api/riskstore/seed/refresh/{TableName} | Refresh seed parquet for a single table | Streams data from the DataHub SQL source into a parquet file at the configured seed location. Runs asynchronously via the message queue. Admin only. |
|---|
namespace Nephila.RiskStore.ServiceModel.Requests
open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type RefreshSeedTableResponse() =
member val RequestId:Guid = new Guid() with get,set
member val TableName:String = null with get,set
member val Status:String = null with get,set
[<AllowNullLiteral>]
type RefreshSeedTable() =
interface IPost
///<summary>
///Name of the seed table to refresh (MetaRisk, Perspective, EventSet, DealModelLink)
///</summary>
[<ApiMember(DataType="string", Description="Name of the seed table to refresh (MetaRisk, Perspective, EventSet, DealModelLink)", IsRequired=true)>]
member val TableName:String = null with get,set
///<summary>
///Optional client supplied request id; one is generated when omitted
///</summary>
[<ApiMember(DataType="string", Description="Optional client supplied request id; one is generated when omitted", Format="uuid")>]
member val RequestId:Guid = new Guid() with get,set
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/riskstore/seed/refresh/{TableName} HTTP/1.1
Host: riskstoreng-dev.nephila.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<RefreshSeedTable xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Nephila.RiskStore.ServiceModel.Requests">
<RequestId>00000000-0000-0000-0000-000000000000</RequestId>
<TableName>String</TableName>
</RefreshSeedTable>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <RefreshSeedTableResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Nephila.RiskStore.ServiceModel.Requests"> <RequestId>00000000-0000-0000-0000-000000000000</RequestId> <Status>String</Status> <TableName>String</TableName> </RefreshSeedTableResponse>