The V2 Calls api endpoints have been added beneath fns: (#1203)

/fns/{fnID}/calls
/fns/{fnID}/calls/{callID}

The S3 implementation forces our hand as we if we want to list Calls
under a Fn, we have to use the FnID as a prefix on the object names,
which mean we need it to look up any Call. It also makes sense in
terms of resource hierarchy.

These endpoints can optionally be disabled (as other endpoints), if a
service provider needs to provide this functionality via other means.

The 'calls' test has been fully migrated to fn calls. This has been
done to reduce the copy pasta a bit, and on balance is ok as the
routes calls will be removed soon.
This commit is contained in:
Tom Coupland
2018-09-12 15:45:53 +01:00
committed by GitHub
parent 6684299096
commit c3537399f1
14 changed files with 615 additions and 81 deletions

View File

@@ -163,8 +163,14 @@ type Call struct {
type CallFilter struct {
Path string // match
AppID string // match
FnID string //match
FromTime common.DateTime
ToTime common.DateTime
Cursor string
PerPage int
}
type CallList struct {
NextCursor string `json:"next_cursor,omitempty"`
Items []*Call `json:"items"`
}