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

NGSIv2: User ?type in Location header at entity creation time #1765

Closed
fgalan opened this issue Feb 4, 2016 · 2 comments
Closed

NGSIv2: User ?type in Location header at entity creation time #1765

fgalan opened this issue Feb 4, 2016 · 2 comments
Assignees
Milestone

Comments

@fgalan
Copy link
Member

fgalan commented Feb 4, 2016

Current implementation includes the following header at entity creation response:

Location: /v2/entities/E1

However, it would be more precise the following:

Location: /v2/entities/E1?type=T1

Note that for entites created without type, taking into account that type defaults to "none" the following should be used:

Location: /v2/entities/E1?type=none
@fgalan fgalan added this to the 0.28.0 milestone Feb 4, 2016
@fgalan
Copy link
Member Author

fgalan commented Feb 4, 2016

Location heder reference: https://tools.ietf.org/html/rfc2616#section-14.30

According to that, the value has to be an "absolute URI". Thus, it seems that using ?type=T1 is ok.

@fgalan
Copy link
Member Author

fgalan commented Feb 24, 2016

Implemented in PR #1837

@fgalan fgalan closed this as completed Feb 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants