README.md in ruby-identitas-api-0.3.0 vs README.md in ruby-identitas-api-0.4.0
- old
+ new
@@ -65,11 +65,11 @@
```ruby
response = request.token_status.parsed_response
```
-### Chane password
+### Change password
Change password
parameters :
@@ -81,9 +81,30 @@
example :
```ruby
response = request.password({password: "mys3cret", password_confirmation: "mys3cret"}).parsed_response
+```
+
+### Create user
+
+Create a new user
+
+parameters :
+
+| name | type |
+| ------------ | ------------ |
+|`access_token`| query string |
+|`email`| query string |
+|`first_name`| query string |
+|`last_name`| query string |
+|`password`| query string |
+|`password_confirmation`| query string |
+
+example :
+
+```ruby
+response = request.create_user({email: "m.yunan.helmy@gmail.com", first_name: "Yunan", last_name: "Helmy", password: "mys3cret", password_confirmation: "mys3cret"}).parsed_response
```
## Development
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.