﻿using System;
using EasyApi.Formatting;
using EasyApi.Values;

namespace EasyApi.Metadata.Attributes.Formatting
{
	[AttributeUsage(AttributeTargets.Interface | AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
	public sealed class JsonRequestAttribute : MetadataAttribute
	{
		protected override ExtraProperty CreateMetadataProperty()
		{
			return MetadataProperties.RequestContentFormatter.Create(ObjectContentFormatter.Json);
		}
	}
}