<commit_before># NJsonApi
.NET server implementation of the {**json:api**} standard.
## Quick start
Given the two POCOs:
```cs
    public class World
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public List<Continent> Continents { get; set; }
    }
	
	public class Continent
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public World World { get; set; }
        public int WorldId { get; set; }
    }
```

... and the **NJsonApi** mapping and bootstrapping:
```cs
	var configBuilder = new ConfigurationBuilder();

	configBuilder
		.Resource<World>()
		.WithAllProperties()
		.WithLinkTemplate("/worlds/{id}");
		
	configBuilder
		.Resource<Continent>()
		.WithAllProperties()
		.WithLinkTemplate("/continents/{id}");

	var nJsonApiConfig = configBuilder.Build();
	nJsonApiConfig.Apply(httpConfiguration);
```

... a standard Web API controller method:
```cs
	[HttpGet, Route]
	public IEnumerable<World> Get()
	{
		return new List<World>() { ... };
	}
```

... starts returning the {**json:api**} compliant* JSON:
```js
{
  "links": {
    "worlds.continents": {
      "href": "http://localhost:56827/continents/{id}",
      "type": "continents"
    }
  },
  "linked": {
    "continents": [
      {
        "id": "1",
        "name": "Hello Europe",
        "worldId": 1,
        "links": {
          "world": "1"
        }
      },
      {
        "id": "2",
        "name": "Hello America",
        "worldId": 1,
        "links": {
          "world": "1"
        }
      },<commit_msg>Fixed json markdown<commit_after># NJsonApi
.NET server implementation of the {**json:api**} standard.
## Quick start
Given the two POCOs:
```cs
    public class World
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public List<Continent> Continents { get; set; }
    }
	
	public class Continent
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public World World { get; set; }
        public int WorldId { get; set; }
    }
```

... and the **NJsonApi** mapping and bootstrapping:
```cs
	var configBuilder = new ConfigurationBuilder();

	configBuilder
		.Resource<World>()
		.WithAllProperties()
		.WithLinkTemplate("/worlds/{id}");
		
	configBuilder
		.Resource<Continent>()
		.WithAllProperties()
		.WithLinkTemplate("/continents/{id}");

	var nJsonApiConfig = configBuilder.Build();
	nJsonApiConfig.Apply(httpConfiguration);
```

... a standard Web API controller method:
```cs
	[HttpGet, Route]
	public IEnumerable<World> Get()
	{
		return new List<World>() { ... };
	}
```

... starts returning the {**json:api**} compliant* JSON:
```json
{
  "links": {
    "worlds.continents": {
      "href": "http://localhost:56827/continents/{id}",
      "type": "continents"
    }
  },
  "linked": {
    "continents": [
      {
        "id": "1",
        "name": "Hello Europe",
        "worldId": 1,
        "links": {
          "world": "1"
        }
      },
      {
        "id": "2",
        "name": "Hello America",
        "worldId": 1,
        "links": {
          "world": "1"
        }
      },
{'fraction_non_alphanumeric': 0.1651898734177215, 'fraction_numerical': 0.006962025316455696, 'mean_word_length': 2.344973544973545, 'pattern_counts': {'":': 32, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3761101', 'n_tokens_mistral': 1060, 'n_tokens_neox': 1005, 'n_words': 262}