using System;
using Bit.Core.Models.Api.Public;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace Bit.Api.Public.Controllers
{
[Route("public/groups")]
[Authorize("Organization")]
public class GroupsController : Controller
{
///
/// Retrieves a specific product by unique id
///
/// Awesomeness!
/// Group created
/// Group has missing/invalid values
/// Oops! Can't create your product right now
[HttpGet("{id}")]
[ProducesResponseType(typeof(GroupResponseModel), 200)]
public IActionResult Get(Guid id)
{
return new JsonResult(new GroupResponseModel(new Core.Models.Table.Group
{
Id = id,
Name = "test",
OrganizationId = Guid.NewGuid()
}));
}
}
}