예제 #1
0
        public void AddDelete()
        {
            var operation = new HydraOperation {
                Method = HttpMethod.DELETE
            };

            OperationList.Add(operation);
        }
예제 #2
0
        public void AddGet()
        {
            var operation = new HydraOperation {
                Method = HttpMethod.GET
            };

            OperationList.Add(operation);
        }
예제 #3
0
        public void AddEmptyPut()
        {
            var operation = new HydraOperation {
                Method = HttpMethod.PUT
            };

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

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

            OperationList.Add(operation);
        }