Exemplo n.º 1
0
        public void AddDelete()
        {
            var operation = new HydraOperation {
                Method = HttpMethod.DELETE
            };

            OperationList.Add(operation);
        }
Exemplo n.º 2
0
        public void AddGet()
        {
            var operation = new HydraOperation {
                Method = HttpMethod.GET
            };

            OperationList.Add(operation);
        }
Exemplo n.º 3
0
        public void AddEmptyPut()
        {
            var operation = new HydraOperation {
                Method = HttpMethod.PUT
            };

            OperationList.Add(operation);
        }
Exemplo n.º 4
0
        public void AddGet(IEnumerable <SupportingProperty> properties)
        {
            var operation = new HydraOperation {
                Method = HttpMethod.GET
            };

            properties.ToList().ForEach(operation.AddPropery);

            OperationList.Add(operation);
        }