MCPcopy Create free account
hub / github.com/elimity-com/scim / Get

Method Get

server_test.go:127–138  ·  view source on GitHub ↗
(r *http.Request, id string)

Source from the content-addressed store, hash-verified

125}
126
127func (h testResourceHandler) Get(r *http.Request, id string) (scim.Resource, error) {
128 resource, ok := h.data[id]
129 if !ok {
130 return scim.Resource{}, errors.ScimErrorResourceNotFound(id)
131 }
132 return scim.Resource{
133 ID: id,
134 ExternalID: externalID(resource.attributes),
135 Attributes: resource.attributes,
136 Meta: resource.meta,
137 }, nil
138}
139
140func (h testResourceHandler) GetAll(r *http.Request, params scim.ListRequestParams) (scim.Page, error) {
141 if params.Count == 0 {

Callers

nothing calls this directly

Calls 2

externalIDFunction · 0.85

Tested by

no test coverage detected