(wsSlug string, input models.CollectionCreate)
| 309 | } |
| 310 | |
| 311 | func (c *Client) CreateCollection(wsSlug string, input models.CollectionCreate) (*models.Collection, error) { |
| 312 | var result models.Collection |
| 313 | return &result, c.post("/workspaces/"+url.PathEscape(wsSlug)+"/collections", input, &result) |
| 314 | } |
| 315 | |
| 316 | func (c *Client) GetCollection(wsSlug, collSlug string) (*models.Collection, error) { |
| 317 | var result models.Collection |