﻿using System;
using System.Collections.Generic;
using Ponics.Components.Commands;
using Ponics.Kernel.Queries;
using ServiceStack;

namespace Ponics.Components
{
    [Api("Get a list of component connections")]
    [Route("/systems/{SystemId}/components/connections", "GET")]
    public class GetConnections: IQuery<List<ComponentConnection>>
    {
        [ApiMember(Name = "SystemId", Description = "The id of a system",
            ParameterType = "path", DataType = "string", IsRequired = true)]
        [ApiAllowableValues("SystemId", typeof(Guid))]
        public Guid SystemId { get; set; }
    }
}
