Skip to content

Add storage description link discovery#1854

Open
SarthakDudhe wants to merge 1 commit intonodeSolidServer:mainfrom
SarthakDudhe:issue-1805-storage-description
Open

Add storage description link discovery#1854
SarthakDudhe wants to merge 1 commit intonodeSolidServer:mainfrom
SarthakDudhe:issue-1805-storage-description

Conversation

@SarthakDudhe
Copy link
Copy Markdown

Add storageDescription Link headers for GET, HEAD, and OPTIONS requests.
Point the relation to the root storage metadata resource (/.meta).
Cover resources and containers in HTTP integration tests.

Fixes #1805.

Tests

npm run lint
npm run mocha-integration

Copy link
Copy Markdown
Member

@csarven csarven left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks for doing this. I haven't run the tests but this generally looks good to me. I've run the code locally and it is referring to the expected URL for storage description resource.

Does this code assume that storage root is always at req.hostname + '/'?

I can't remember now but does NSS allow non-root path to be storage root? If so, does the code take that into account?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement storage description resource discovery

2 participants