Commit 30e0cd1
John Pinto
DCC bug 711 - Fix for the Rest API call POST /api/v1/plans for Plan
creation. The previous call based on instructions in wiki was always
defaulting to using the default template regardless of template id sent.
Fix for DCC bug 711 https://github.com/DigitalCurationCentre/DMPonline-Service/issues/711
The API Documentation V1 - Create Plan page has been changed
"dmptool" replaced by "dmproadmap" in fragment of Json sent for plan
creation.
Changes:
- We use :dmproadmap which is the symbol of the dmproadmap json object
nested in extensions which is the container for the json template object, etc.
- In app/services/api/v1/deserialization_service.rb the method
app_extensions() has been changed to use the symbol :dmproadmap.
- In app/views/api/v1/plans/_show.json.jbuilder the block that builds
the template json object now uses the symbol :dmproadmap
- fixed tests in spec/services/api/v1/contextual_error_service_spec.rb
and spec/services/api/v1/deserialization_service_spec.rb.1 parent 1d63351 commit 30e0cd1
File tree
4 files changed
+14
-11
lines changed- app
- services/api/v1
- views/api/v1/plans
- spec/services/api/v1
4 files changed
+14
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | 60 | | |
62 | 61 | | |
63 | 62 | | |
64 | | - | |
65 | | - | |
66 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
67 | 67 | | |
68 | | - | |
69 | 68 | | |
70 | 69 | | |
71 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
8 | 12 | | |
9 | 13 | | |
10 | 14 | | |
| |||
56 | 60 | | |
57 | 61 | | |
58 | 62 | | |
59 | | - | |
| 63 | + | |
60 | 64 | | |
61 | 65 | | |
62 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
81 | 83 | | |
82 | | - | |
| 84 | + | |
83 | 85 | | |
84 | 86 | | |
85 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
126 | | - | |
127 | 125 | | |
128 | 126 | | |
129 | 127 | | |
| |||
135 | 133 | | |
136 | 134 | | |
137 | 135 | | |
138 | | - | |
| 136 | + | |
139 | 137 | | |
140 | 138 | | |
141 | 139 | | |
142 | 140 | | |
143 | 141 | | |
144 | | - | |
| 142 | + | |
145 | 143 | | |
146 | 144 | | |
147 | 145 | | |
| |||
0 commit comments