question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Namespace not honored when RelativeLinks=true

See original GitHub issue

Description

In the GettingStarted App if you set RelativeLinks = true; the links in response do not include the namespace. Should it not return "self": "api/people"?

services.AddJsonApi<SampleDbContext>(options =>
    {
        options.Namespace = "api";
        options.RelativeLinks = true;
     });

{
    "links": {
        "self": "/people"
    },
    "data": [
        {
            "type": "people",
            "id": "1",
            "attributes": {
                "name": "John Doe"
            },
            "relationships": {
                "articles": {
                    "links": {
                        "self": "/people/1/relationships/articles",
                        "related": "/people/1/articles"
...

Environment

  • JsonApiDotNetCore Version: master
  • Other Relevant Package Versions: core 3.1

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
fdlanecommented, May 20, 2020

@bart-degreed will do

0reactions
bart-degreedcommented, May 20, 2020

@fdlane Do you wanna take this one?

Read more comments on GitHub >

github_iconTop Results From Across the Web

helm 3: --namespace not respected · Issue #5628
The namespace value just isn't being passed through properly. So it uses whatever your active namespace is, workaround is to change your active ......
Read more >
Namespaces
In Kubernetes, namespaces provides a mechanism for isolating groups of resources within a single cluster. Names of resources need to be unique ...
Read more >
'the type or namespace could not be found' in Visual Studio ...
Every time I do a git pull from remote to update my branch, Visual Studio 2017 shows "the type or namespace could not...
Read more >
How to fix — Kubernetes namespace deleting stuck in ...
After running that command, the namespace should now be absent from your namespaces list. The key thing to note here is the resource...
Read more >
How to fix Kubernetes namespaces stuck in the terminating ...
While frequently creating and deleting namespaces in Kubernetes, I stumbled upon an issue where a namespace got stuck in the Terminating state ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found