CenterForDigitalHumanities / CenterForDigitalHumanities/TinyNode

Profile Headers for 1.0 Requests

Open
#26 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1
Forks
3
Avg merge
29m
Merged PRs (30d)
1

Description

For a response which is processed using the v1 1.0 profile expectation (ex reading `new_obj_state`), the request must contain a Profile header request for the response under the v1.1 profile.

Ex.
```HTTP
Request:
POST /v1/create HTTP/1.1
Content-Type: application/json
Profile: http://storedev.rerum.io/profile1.0
body {"hello":"world"}

Response:
HTTP/1.1 201 Created
Content-Type: application/json
Accept-Profile: http://storedev.rerum.io/profile1.0
body {"@id":"https://example.item/id/123", "hello":"world", "new_obj_state":{...}}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.