Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get item links #16

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Get item links #16

wants to merge 5 commits into from

Conversation

halloju
Copy link
Contributor

@halloju halloju commented Oct 29, 2021

issue 7

@hrchu
Copy link
Member

hrchu commented Nov 1, 2021

This branch has conflicts that must be resolved.

tests/integration_test_solid_api.py Outdated Show resolved Hide resolved
src/solid/solid_api.py Outdated Show resolved Hide resolved
src/solid/utils/api_util.py Outdated Show resolved Hide resolved
src/solid/utils/api_util.py Outdated Show resolved Hide resolved
src/solid/utils/api_util.py Outdated Show resolved Hide resolved
@@ -59,3 +60,107 @@ def are_folders(urls: List) -> bool:

def are_files(urls: List) -> bool:
pass

def get_links_from_response(response) -> dict:
Copy link
Member

Choose a reason for hiding this comment

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

-> Dict

else:
return parse_link_header(link_header, response.url)

def parse_link_header(link_header: str, item_url) -> Dict:
Copy link
Member

Choose a reason for hiding this comment

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

Do you prefer a Dict instead of Links here?

@hrchu
Copy link
Member

hrchu commented Nov 10, 2021

@halloju What server implementation do you test against?

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

Successfully merging this pull request may close these issues.

2 participants