laa-apply-for-legalaid-api-client 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +15 -0
- data/lib/laa/apply_for_legal_aid/api/requests.rb +4 -0
- data/lib/laa/apply_for_legal_aid/api/requests/applicants.rb +17 -0
- data/lib/laa/apply_for_legal_aid/api/requests/applications.rb +1 -5
- data/lib/laa/apply_for_legal_aid/api/requests/proceeding_types.rb +13 -0
- data/lib/laa/apply_for_legal_aid/api/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c446225b8c49b8f46af42ad9ec333eebce1e397784657aa1dec184ae7d21b95
|
4
|
+
data.tar.gz: 07a627b7e67403e3e54c921e4ebcb7027eb73963cbc39e65a2034e52e4e8dbf0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e6967946c96cf52cd28bcc1e0d2b565d96c9bfa5ad380c0d1a603c09903fc923dabc20c41a62c6c72b0c6dbd444773ee91137e49b30d018d4dc7c104b717b25
|
7
|
+
data.tar.gz: c5acd551bb10e79961f71c9b191c9ebe1c8b10fd9b5039ab4801332aa5543235b8869f90df3b0d31df4e4e191696011fd4277158f983cc0a020ea5fa6596586a
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -2,6 +2,8 @@
|
|
2
2
|
|
3
3
|
This is an HTTP client gem to perform calls to the LAA Apply for legal aid API.
|
4
4
|
|
5
|
+
[![CircleCI](https://circleci.com/gh/ministryofjustice/laa-apply-for-legalaid-api-ruby-client.svg?style=svg)](https://circleci.com/gh/ministryofjustice/laa-apply-for-legalaid-api-ruby-client)
|
6
|
+
|
5
7
|
## Installation
|
6
8
|
|
7
9
|
Add this line to your application's Gemfile:
|
@@ -83,6 +85,19 @@ bundle exec rake release
|
|
83
85
|
|
84
86
|
which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
85
87
|
|
88
|
+
**NOTE:** In case some error like the following happens:
|
89
|
+
|
90
|
+
```
|
91
|
+
Pushed git commits and tags.
|
92
|
+
rake aborted!
|
93
|
+
Your rubygems.org credentials aren't set. Run `gem push` to set them.
|
94
|
+
|
95
|
+
Tasks: TOP => release => release:rubygem_push
|
96
|
+
(See full trace by running task with --trace)
|
97
|
+
```
|
98
|
+
|
99
|
+
`gem push` needs to be setup using the email: `tools@digital.justice.gov.uk` (authentication details are available in the internal Rattic password manager).
|
100
|
+
|
86
101
|
## Contributing
|
87
102
|
|
88
103
|
Bug reports and pull requests are welcome on GitHub at https://github.com/ministryofjustice/laa-apply-for-legalaid-api-ruby-client/issues.
|
@@ -1,4 +1,6 @@
|
|
1
1
|
require 'laa/apply_for_legal_aid/api/requests/applications'
|
2
|
+
require 'laa/apply_for_legal_aid/api/requests/applicants'
|
3
|
+
require 'laa/apply_for_legal_aid/api/requests/proceeding_types'
|
2
4
|
|
3
5
|
module Laa
|
4
6
|
module ApplyForLegalAid
|
@@ -6,6 +8,8 @@ module Laa
|
|
6
8
|
module Requests
|
7
9
|
def self.included(base)
|
8
10
|
base.include(Applications)
|
11
|
+
base.include(Applicants)
|
12
|
+
base.include(ProceedingTypes)
|
9
13
|
end
|
10
14
|
end
|
11
15
|
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module Laa
|
2
|
+
module ApplyForLegalAid
|
3
|
+
module Api
|
4
|
+
module Requests
|
5
|
+
module Applicants
|
6
|
+
def create_applicant(app_id, params)
|
7
|
+
post("/v1/applications/#{app_id}/applicant", data: params)
|
8
|
+
end
|
9
|
+
|
10
|
+
def update_applicant(app_id, params)
|
11
|
+
patch("/v1/applications/#{app_id}/applicant", data: params)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -4,11 +4,7 @@ module Laa
|
|
4
4
|
module Requests
|
5
5
|
module Applications
|
6
6
|
def create_application(params)
|
7
|
-
post("/v1/applications", params)
|
8
|
-
end
|
9
|
-
|
10
|
-
def update_application(params)
|
11
|
-
patch("/v1/applications", params)
|
7
|
+
post("/v1/applications", data: params)
|
12
8
|
end
|
13
9
|
|
14
10
|
def get_application(application_id)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: laa-apply-for-legalaid-api-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergio Marques
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-
|
12
|
+
date: 2018-10-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|
@@ -163,7 +163,9 @@ files:
|
|
163
163
|
- lib/laa/apply_for_legal_aid/api/core_ext/array.rb
|
164
164
|
- lib/laa/apply_for_legal_aid/api/request.rb
|
165
165
|
- lib/laa/apply_for_legal_aid/api/requests.rb
|
166
|
+
- lib/laa/apply_for_legal_aid/api/requests/applicants.rb
|
166
167
|
- lib/laa/apply_for_legal_aid/api/requests/applications.rb
|
168
|
+
- lib/laa/apply_for_legal_aid/api/requests/proceeding_types.rb
|
167
169
|
- lib/laa/apply_for_legal_aid/api/version.rb
|
168
170
|
homepage: https://github.com/ministryofjustice/laa-apply-for-legalaid-api-ruby-client
|
169
171
|
licenses:
|