Conversation
7a26391 to
a4dfd39
Compare
a4dfd39 to
b528d68
Compare
|
Hey, I'm testing the API and ran into an error that I'm not sure is expected. The response returned is: Script used for testing: TOKEN=$(curl -s -X POST \
"https://$KEYCLOAK_HOST/realms/$REALM/protocol/openid-connect/token" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "client_id=$CLIENT_ID" \
-d "client_secret=$CLIENT_SECRET" \
-d "grant_type=client_credentials" \
-d "scope=openid email" \
| jq -r '.access_token')
# Create document
json_return=$(curl -s -X POST "$HOST/external_api/v1.0/documents/" \
-H "Authorization: Bearer $TOKEN" \
-F "file=@/home/gustavo/README.md;type=text/markdown")
DOC_ID=$(echo $json_return | jq -r '.id')
CONTENT=$(echo $json_return | jq -r '.content')
# Remove document
curl -X DELETE "$HOST/external_api/v1.0/documents/$DOC_ID/" \
-H "Authorization: Bearer $TOKEN"Am I missing something? |
|
Hi, In the settings there is a list of allowed actions for each viewset. And |
I see it now, thank you! |
a46a3a0 to
a66d65d
Compare
Base branch requires signed commits
ccdb3da to
af02bec
Compare
Adds a resource server API similar to the one that already exists for Drive.
af02bec to
4e54a53
Compare
Purpose
Adds a resource server API similar to the one that already exists for Drive.
Proposal
resource_serverAPI with four endpoints :documents,document_accesses,document_invitation,users, along with unit tests that check that :docs/resource_server.md.List of actions for each endpoint
For documents:
For document accesses:
For invitations:
For users: