feat: step6 resource by ext-id#518
feat: step6 resource by ext-id#518swaroopAkkineniWorkos wants to merge 7 commits intoENT-5353-base-fga-for-go-sdkfrom
Conversation
|
@greptile review |
|
@greptile re-review |
|
@greptile re-review |
|
@greptile re-review |
Greptile SummaryThis PR implements three previously-stubbed Key changes:
Confidence Score: 4/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Caller
participant Client
participant WorkOSAPI as WorkOS API
Note over Caller,WorkOSAPI: GetResourceByExternalId
Caller->>Client: GetResourceByExternalId(ctx, {OrgId, TypeSlug, ExternalId})
Client->>WorkOSAPI: GET /authorization/organizations/{org_id}/resources/{type_slug}/{external_id}
WorkOSAPI-->>Client: 200 AuthorizationResource JSON
Client-->>Caller: AuthorizationResource, nil
Note over Caller,WorkOSAPI: UpdateResourceByExternalId
Caller->>Client: UpdateResourceByExternalId(ctx, {OrgId, TypeSlug, ExternalId, Name, Description})
Client->>WorkOSAPI: PATCH /authorization/organizations/{org_id}/resources/{type_slug}/{external_id} + JSON body
WorkOSAPI-->>Client: 200 AuthorizationResource JSON
Client-->>Caller: AuthorizationResource, nil
Note over Caller,WorkOSAPI: DeleteResourceByExternalId
Caller->>Client: DeleteResourceByExternalId(ctx, {OrgId, TypeSlug, ExternalId, CascadeDelete})
Client->>WorkOSAPI: DELETE /authorization/organizations/{org_id}/resources/{type_slug}/{external_id}[?cascade_delete=true]
WorkOSAPI-->>Client: 204 No Content
Client-->>Caller: nil
|
Description
Documentation
Does this require changes to the WorkOS Docs? E.g. the API Reference or code snippets need updates.
If yes, link a related docs PR and add a docs maintainer as a reviewer. Their approval is required.