mirror of
https://github.com/passbolt/go-passbolt.git
synced 2025-09-13 14:29:09 +00:00
Migrate new things to DoCustomRequestV5, fix Comments
This commit is contained in:
parent
7bc894763c
commit
057d2e5f59
3 changed files with 8 additions and 8 deletions
|
@ -9,7 +9,7 @@ type PassboltAPIVersionType string
|
|||
|
||||
const (
|
||||
PassboltAPIVersionTypeV4 PassboltAPIVersionType = "v4"
|
||||
PassboltAPIVersionTypeV5 = "v5"
|
||||
PassboltAPIVersionTypeV5 PassboltAPIVersionType = "v5"
|
||||
)
|
||||
|
||||
func (s PassboltAPIVersionType) IsValid() bool {
|
||||
|
@ -59,7 +59,7 @@ func getV4DefaultMetadataTypeSettings() MetadataTypeSettings {
|
|||
|
||||
// GetMetadataTypeSettings gets the Servers Settings about which Types to use
|
||||
func (c *Client) GetMetadataTypeSettings(ctx context.Context) (*MetadataTypeSettings, error) {
|
||||
msg, err := c.DoCustomRequest(ctx, "GET", "/metadata/types/settings.json", "v3", nil, nil)
|
||||
msg, err := c.DoCustomRequestV5(ctx, "GET", "/metadata/types/settings.json", nil, nil)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue