Skip to content

Commit

Permalink
Merge pull request #49 from elimity-com/readme
Browse files Browse the repository at this point in the history
update readme
  • Loading branch information
jdeflander committed May 21, 2019
2 parents 91bab90 + 28aa7b7 commit 68ddb94
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 68ddb94

Please sign in to comment.