Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Quint Daenen committed May 21, 2019
1 parent 91bab90 commit 28aa7b7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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.
Expand All @@ -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.

Expand Down

0 comments on commit 28aa7b7

Please sign in to comment.