40 lines
1.0 KiB
HTTP
40 lines
1.0 KiB
HTTP
### Get Spaces
|
|
GET http://localhost:31009/v1/spaces
|
|
Authorization: Bearer {{apiKey}}
|
|
|
|
### Get Types
|
|
GET http://localhost:31009/v1/spaces/{{spaceId}}/types
|
|
Authorization: Bearer {{apiKey}}
|
|
Anytype-Version: 0.1
|
|
|
|
### Get Type
|
|
GET http://localhost:31009/v1/spaces/{{spaceId}}/types/bafyreidtsobmbfmf6gl7bfwyd3ik3zs4m7t6e7p46y4lonsz3chkgeeabi
|
|
Authorization: Bearer {{apiKey}}
|
|
Anytype-Version: 0.1
|
|
|
|
### Get objects of type
|
|
POST http://localhost:31009/v1/spaces/{{spaceId}}/search?type=project
|
|
Authorization: Bearer {{apiKey}}
|
|
Anytype-Version: 0.1
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"types": ["project"]
|
|
}
|
|
|
|
### Get Property
|
|
GET http://localhost:31009/v1/spaces/{{spaceId}}/properties/bafyreibs7xr3zphtvjt3t4bk3jhcxlllo6jskrsatnuvkrcs65k3kfuany
|
|
Authorization: Bearer {{apiKey}}
|
|
Anytype-Version: 0.1
|
|
|
|
### Create Task
|
|
POST http://localhost:31009/v1/spaces/{{spaceId}}/objects
|
|
Authorization: Bearer {{apiKey}}
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"name": "Test Task II",
|
|
"body": "Created via HTTP client",
|
|
"type_key": "ot-task"
|
|
}
|