@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api Amazon SageMaker Feature Store Runtime
@version 2020-07-01
@auth AWS SigV4
@endpoints 4
@toc BatchGetRecord(1), FeatureGroup(3)

@group BatchGetRecord
@endpoint POST /BatchGetRecord
@required {Identifiers: [BatchGetRecordIdentifier]}
@optional {ExpirationTimeResponse: str}
@returns(200) {Records: [BatchGetRecordResultDetail], Errors: [BatchGetRecordError], UnprocessedIdentifiers: [BatchGetRecordIdentifier]}

@endgroup

@group FeatureGroup
@endpoint DELETE /FeatureGroup/{FeatureGroupName}
@required {FeatureGroupName: str, RecordIdentifierValueAsString: str, EventTime: str}
@optional {TargetStores: [str], DeletionMode: str}

@endpoint GET /FeatureGroup/{FeatureGroupName}
@required {FeatureGroupName: str, RecordIdentifierValueAsString: str}
@optional {FeatureName: [str], ExpirationTimeResponse: str}
@returns(200) {Record: [FeatureValue]?, ExpiresAt: str?}

@endpoint PUT /FeatureGroup/{FeatureGroupName}
@required {FeatureGroupName: str, Record: [FeatureValue]}
@optional {TargetStores: [str], TtlDuration: TtlDuration}

@endgroup

@end
