| sidebar_position |
3 |
| title |
HTTP API |
| description |
REST API endpoints and headers |
POST /.pods
Content-Type: application/json
{"name": "alice"}
Response:
{
"name": "alice",
"webId": "http://localhost:3000/alice/#me",
"podUri": "http://localhost:3000/alice/",
"token": "..."
}
With IdP enabled:
GET /alice/public/data.json
Accept: application/ld+json
PUT /alice/public/data.json
Authorization: Bearer TOKEN
Content-Type: application/ld+json
{"@id": "#item", "http://schema.org/name": "Value"}
POST /alice/public/
Authorization: Bearer TOKEN
Content-Type: application/ld+json
Slug: new-resource
{"@id": "#item"}
DELETE /alice/public/data.json
Authorization: Bearer TOKEN
PATCH /alice/public/data.json
Authorization: Bearer TOKEN
Content-Type: text/n3
@prefix solid: <http://www.w3.org/ns/solid/terms#>.
_:p a solid:InsertDeletePatch;
solid:inserts { <#x> <#y> <#z> }.
Headers
Request Headers
| Header |
Description |
Authorization |
Bearer TOKEN or DPoP TOKEN |
Content-Type |
Resource MIME type |
Accept |
Requested response format |
If-Match |
ETag for conditional update |
If-None-Match |
ETag for conditional create |
Slug |
Suggested resource name for POST |
Response Headers
| Header |
Description |
ETag |
Resource version |
Link |
LDP type links |
Updates-Via |
WebSocket notification URL |
WAC-Allow |
Permitted operations |