From 28aa7b753f267c7bb21194c9eca7948939f84995 Mon Sep 17 00:00:00 2001 From: Quint Daenen Date: Tue, 21 May 2019 12:03:55 +0200 Subject: [PATCH] update readme --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 90b03fd..70f9c43 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,8 @@ go get github.com/elimity-com/scim [RFC Config](https://tools.ietf.org/html/rfc7643#section-5) | [Example Config](https://tools.ietf.org/html/rfc7643#section-8.5) ``` -config, _ := scim.NewServiceProviderConfigFromFile("/path/to/config") +// i.e. rawConfig, _ := ioutil.ReadFile("/path/to/config") +config, _ := scim.NewServiceProviderConfig(rawConfig) ``` **!** no additional features/operations are supported in this version. @@ -38,8 +39,8 @@ config, _ := scim.NewServiceProviderConfigFromFile("/path/to/config") [Group Schema](https://tools.ietf.org/html/rfc7643#section-4.2) | [Extension Schema](https://tools.ietf.org/html/rfc7643#section-4.3) ``` -schema, _ := scim.NewSchemaFromFile("/path/to/schema") -extension, _ := scim.NewSchemaFromFile("/path/to/extension") +schema, _ := scim.NewSchema(rawSchema) +extension, _ := scim.NewSchema(rawExtension) ``` ### 3. Create all resource types and their callbacks. @@ -56,7 +57,7 @@ var resourceHandler scim.ResourceHandler #### 3.2 Resource Type ``` -resourceType, _ := scim.NewResourceTypeFromFile("/path/to/resourceType", resourceHandler) +resourceType, _ := scim.NewResourceType(rawResourceType, resourceHandler) ``` **!** make sure all schemas that are referenced are created in the previous step.