(wsSlug string, input models.CollectionCreate)
| 295 | } |
| 296 | |
| 297 | func (c *Client) CreateCollection(wsSlug string, input models.CollectionCreate) (*models.Collection, error) { |
| 298 | var result models.Collection |
| 299 | return &result, c.post("/workspaces/"+url.PathEscape(wsSlug)+"/collections", input, &result) |
| 300 | } |
| 301 | |
| 302 | func (c *Client) GetCollection(wsSlug, collSlug string) (*models.Collection, error) { |
| 303 | var result models.Collection |