usman 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6e90151fe766fe30d80afab167a73f3f19695575
4
- data.tar.gz: f7c1661db459e54c6842955f13a5d33e5ab7177b
3
+ metadata.gz: e94f0975fd0fa28f10f87c0c643e54dc3015967d
4
+ data.tar.gz: 1fd689c72b2e93164649248a4d6147f2a60fe2f2
5
5
  SHA512:
6
- metadata.gz: aa84b62ff326217fa57b3bfccee3c92fd10e5596b1d89f03dc89f20ce2d6a09e5e1d59ffbd343aecaec434d6f1b9fef2dbba60899ee17dc00581eec4cda330a1
7
- data.tar.gz: 36bc606482819a366c70ad7f7a99d325139ad030db3ae01aaac86b05cbfc9e0eaf51bef78f3410b9b13e661dcc5a6914fca30c2afb079fc1209c9d207b5926bc
6
+ metadata.gz: c6f2a9c9de37d681ce5cfb3c88a7b2ebc14446a3c70fac683ee79a27d9e6821bb7d2285d1a67b211cd401003a5c70692bd816973e7aa9d8685e2b65599d01e06
7
+ data.tar.gz: 4b34bc3cc5e41ecd998da6ff9d897c8b1424bbbb55752415541e0f6cff04744fa6de5c3257715e1c3cf83e29d103c74c33bdd5c8b8ffa446d3ac20faa7e28b63
@@ -114,11 +114,12 @@ module Usman
114
114
  def create_profile
115
115
  set_title("Create Profile API")
116
116
  @request_type = "POST"
117
- @end_point = "/api/v1/accept_tac"
118
- @description = "This API will return so and so and create blah blah blah"
117
+ @end_point = "/api/v1/create_profile"
118
+ @description = "This API will create a profile for a newly registered user"
119
119
 
120
120
  @input_headers = {
121
- "Content-Type" => { value: "application/json", description: "The MIME media type for JSON text is application/json. This is to make sure that a valid json is returned. The default encoding is UTF-8. " }
121
+ "Content-Type" => { value: "application/json", description: "The MIME media type for JSON text is application/json. This is to make sure that a valid json is returned. The default encoding is UTF-8. " },
122
+ "Authorization" => { value: "Token token=\"87b01adbba90824b57add8cc06ad8738\"", description: "Put the API Token here. This is must for creating a profile. You need to register with your mobile number and verify the otp before you could create a profile" }
122
123
  }
123
124
 
124
125
  @input_params = {
@@ -128,7 +129,7 @@ module Usman
128
129
  }
129
130
 
130
131
  @example_path = "usman/api/v1/docs/"#
131
- # @examples = ["pos_case_1", "neg_case_1", "neg_case_2", "neg_case_3"]
132
+ @examples = ["pos_case_1", "neg_case_1", "neg_case_2", "neg_case_3"]
132
133
 
133
134
  set_nav("docs/create_profile")
134
135
 
@@ -138,11 +139,12 @@ module Usman
138
139
  def update_profile
139
140
  set_title("Update Profile API")
140
141
  @request_type = "POST"
141
- @end_point = "/api/v1/accept_tac"
142
- @description = "This API will return so and so and create blah blah blah"
142
+ @end_point = "/api/v1/update_profile"
143
+ @description = "This API will update the profile details"
143
144
 
144
145
  @input_headers = {
145
- "Content-Type" => { value: "application/json", description: "The MIME media type for JSON text is application/json. This is to make sure that a valid json is returned. The default encoding is UTF-8. " }
146
+ "Content-Type" => { value: "application/json", description: "The MIME media type for JSON text is application/json. This is to make sure that a valid json is returned. The default encoding is UTF-8. " },
147
+ "Authorization" => { value: "Token token=\"87b01adbba90824b57add8cc06ad8738\"", description: "Put the API Token here. This is must for creating a profile. You need to register with your mobile number and verify the otp before you could create a profile" }
146
148
  }
147
149
 
148
150
  @input_params = {
@@ -152,7 +154,7 @@ module Usman
152
154
  }
153
155
 
154
156
  @example_path = "usman/api/v1/docs/"#
155
- # @examples = ["pos_case_1", "neg_case_1", "neg_case_2", "neg_case_3"]
157
+ @examples = ["pos_case_1", "neg_case_1", "neg_case_2", "neg_case_3"]
156
158
 
157
159
  set_nav("docs/update_profile")
158
160
 
@@ -4,8 +4,8 @@ module Usman
4
4
  class ProfileController < Usman::Api::V1::BaseController
5
5
 
6
6
  def create_profile
7
- proc_code = Proc.new do
8
-
7
+ #proc_code = Proc.new do
8
+ #binding.pry
9
9
  if @current_registration
10
10
  if @current_user
11
11
  @success = false
@@ -20,20 +20,87 @@ module Usman
20
20
  @user.gender = permitted_params[:gender]
21
21
  @user.date_of_birth = permitted_params[:date_of_birth]
22
22
  @user.email = permitted_params[:email]
23
+
24
+ @country = Country.find_by_id(permitted_params[:country_id])
25
+ @city = City.find_by_id(permitted_params[:city_id])
26
+
23
27
  if @user.valid?
28
+ @user.save
24
29
  @current_registration.user = @user
30
+
31
+ @current_registration.country = @country if @country
32
+ @current_registration.city = @city if @city
33
+
34
+ @current_registration.save
35
+
36
+ @current_user = @user
25
37
  @success = true
26
38
  @alert = {
27
39
  heading: I18n.translate("api.profile.profile_created.heading"),
28
40
  message: I18n.translate("api.profile.profile_created.message")
29
41
  }
30
- @data = {
31
- registration: @reg_data.registration,
32
- device: @reg_data.device
33
- }
42
+ @data = { user: @user }
34
43
  else
35
- @errors = @user.errors
36
44
  @success = false
45
+ @errors = {
46
+ heading: I18n.translate("api.profile.invalid_inputs.heading"),
47
+ message: I18n.translate("api.profile.invalid_inputs.message"),
48
+ details: @user.errors
49
+ }
50
+ end
51
+ end
52
+ else
53
+ @success = false
54
+ @errors = {
55
+ heading: I18n.translate("api.profile.registration_details_missing.heading"),
56
+ message: I18n.translate("api.profile.registration_details_missing.message")
57
+ }
58
+ end
59
+ proc_code = Proc.new do
60
+ end
61
+ render_json_response(proc_code)
62
+ end
63
+
64
+ def update_profile
65
+ proc_code = Proc.new do
66
+ if @current_registration
67
+ unless @current_user
68
+ @success = false
69
+ @errors = {
70
+ heading: I18n.translate("api.profile.user_does_not_exists.heading"),
71
+ message: I18n.translate("api.profile.user_does_not_exists.message")
72
+ }
73
+ else
74
+ @user = @current_user
75
+ @user.name = permitted_params[:name]
76
+ @user.gender = permitted_params[:gender]
77
+ @user.date_of_birth = permitted_params[:date_of_birth]
78
+ @user.email = permitted_params[:email]
79
+
80
+ @country = Country.find_by_id(permitted_params[:country_id])
81
+ @city = City.find_by_id(permitted_params[:city_id])
82
+
83
+ if @user.valid?
84
+ @user.save
85
+
86
+ @current_registration.country = @country if @country
87
+ @current_registration.city = @city if @city
88
+
89
+ @current_registration.save
90
+
91
+ @success = true
92
+ @alert = {
93
+ heading: I18n.translate("api.profile.profile_created.heading"),
94
+ message: I18n.translate("api.profile.profile_created.message")
95
+ }
96
+ @data = { user: @user }
97
+ else
98
+ @success = false
99
+ @errors = {
100
+ heading: I18n.translate("api.profile.invalid_inputs.heading"),
101
+ message: I18n.translate("api.profile.invalid_inputs.message"),
102
+ details: @user.errors
103
+ }
37
104
  end
38
105
  end
39
106
  else
@@ -50,7 +117,7 @@ module Usman
50
117
  private
51
118
 
52
119
  def permitted_params
53
- params.require(:profile).permit(:name, :gender, :date_of_birth, :email, :country_id, :city_id)
120
+ params.permit(:name, :gender, :date_of_birth, :email, :country_id, :city_id)
54
121
  end
55
122
 
56
123
  end
@@ -27,7 +27,7 @@ module Usman
27
27
 
28
28
  def resend_otp
29
29
  proc_code = Proc.new do
30
- @registration = Registration.where("mobile_number = ?", params[:mobile_number]).first
30
+ @registration = Registration.where("mobile_number = ? AND dialing_prefix = ?", params[:mobile_number], params[:dialing_prefix]).first
31
31
  if @registration
32
32
  @device = @registration.devices.where("uuid = ?", params[:uuid]).first
33
33
  if @device
@@ -82,7 +82,7 @@ module Usman
82
82
 
83
83
  def verify_otp
84
84
  proc_code = Proc.new do
85
- @registration = Registration.where("mobile_number = ?", params[:mobile_number]).first
85
+ @registration = Registration.where("mobile_number = ? AND dialing_prefix = ?", params[:mobile_number], params[:dialing_prefix]).first
86
86
  if @registration
87
87
  @device = @registration.devices.where("uuid = ?", params[:uuid]).first
88
88
  if @device
@@ -137,7 +137,7 @@ module Usman
137
137
 
138
138
  def accept_tac
139
139
  proc_code = Proc.new do
140
- @registration = Registration.where("mobile_number = ?", params[:mobile_number]).first
140
+ @registration = Registration.where("mobile_number = ? AND dialing_prefix = ?", params[:mobile_number], params[:dialing_prefix]).first
141
141
  if @registration
142
142
  @device = @registration.devices.where("uuid = ?", params[:uuid]).first
143
143
  if @device
@@ -28,8 +28,11 @@ module Usman
28
28
  current_device
29
29
  unless @current_device
30
30
  proc_code = Proc.new do
31
- set_notification_messages("authentication.permission_denied", :error)
32
- raise AuthenticationError
31
+ @success = false
32
+ @errors = {
33
+ heading: I18n.translate("api.general.permission_denied.heading"),
34
+ message: I18n.translate("api.general.permission_denied.message")
35
+ }
33
36
  end
34
37
  render_json_response(proc_code)
35
38
  return
data/app/models/user.rb CHANGED
@@ -36,7 +36,7 @@ class User < Usman::ApplicationRecord
36
36
  "No Gender" => NOGENDER
37
37
  }
38
38
 
39
- EXCLUDED_JSON_ATTRIBUTES = [:confirmation_token, :password_digest, :reset_password_token, :unlock_token, :status, :reset_password_sent_at, :remember_created_at, :sign_in_count, :current_sign_in_at, :last_sign_in_at, :current_sign_in_ip, :last_sign_in_ip, :confirmed_at, :confirmation_sent_at, :unconfirmed_email, :failed_attempts, :locked_at, :created_at, :updated_at]
39
+ EXCLUDED_JSON_ATTRIBUTES = [:confirmation_token, :password_digest, :reset_password_token, :auth_token, :unlock_token, :status, :reset_password_sent_at, :remember_created_at, :sign_in_count, :current_sign_in_at, :last_sign_in_at, :current_sign_in_ip, :last_sign_in_ip, :confirmed_at, :confirmation_sent_at, :unconfirmed_email, :failed_attempts, :locked_at, :created_at, :updated_at]
40
40
  DEFAULT_PASSWORD = "Password@1"
41
41
  SESSION_TIME_OUT = 120.minutes
42
42
 
@@ -0,0 +1,34 @@
1
+ <%
2
+
3
+ api_title = "Negative Case - 1 - should set proper errors if api token is not present"
4
+
5
+ api_input = <<-eos
6
+ {
7
+ "name": "Name",
8
+ "gender": "male",
9
+ "date_of_birth": "10/10/1980",
10
+ "email": "name@domain.com",
11
+ "country_id": "1",
12
+ "city_id": "2"
13
+ }
14
+ eos
15
+
16
+ api_output = <<-eos
17
+ {
18
+ "success": false,
19
+ "errors": {
20
+ "heading": "Invalid API Token",
21
+ "message": "Use the API Token you have received after accepting the terms and agreement"
22
+ }
23
+ }
24
+ eos
25
+
26
+ %>
27
+
28
+ <%= render partial: "kuppayam/api/docs/example", locals: {
29
+ negative_case: true,
30
+ example_id: "neg_case_1",
31
+ api_title: api_title,
32
+ api_input: api_input,
33
+ api_output: api_output
34
+ } %>
@@ -0,0 +1,34 @@
1
+ <%
2
+
3
+ api_title = "Negative Case - 2 - should set proper errors if the profile already exists"
4
+
5
+ api_input = <<-eos
6
+ {
7
+ "name": "Name",
8
+ "gender": "male",
9
+ "date_of_birth": "10/10/1980",
10
+ "email": "name@domain.com",
11
+ "country_id": "1",
12
+ "city_id": "2"
13
+ }
14
+ eos
15
+
16
+ api_output = <<-eos
17
+ {
18
+ "success": false,
19
+ "errors": {
20
+ "heading": "A profile already exists for the mobile number you have provided",
21
+ "message": "You are trying to create a profile once again when you already have a profile. Use Profile API with your API Token, to get your profile details and use them instead of creating a new one."
22
+ }
23
+ }
24
+ eos
25
+
26
+ %>
27
+
28
+ <%= render partial: "kuppayam/api/docs/example", locals: {
29
+ negative_case: true,
30
+ example_id: "neg_case_2",
31
+ api_title: api_title,
32
+ api_input: api_input,
33
+ api_output: api_output
34
+ } %>
@@ -0,0 +1,31 @@
1
+ <%
2
+
3
+ api_title = "Negative Case - 3 - should set proper errors if the inputs are not correct"
4
+
5
+ api_input = <<-eos
6
+ {}
7
+ eos
8
+
9
+ api_output = <<-eos
10
+ {
11
+ "success": false,
12
+ "errors": {
13
+ "heading": "Creating Profile Failed",
14
+ "message": "Check if all mandatory details are passed. Refer the error details for technical information",
15
+ "details": {
16
+ "name": ["can't be blank", "is too short (minimum is 3 characters)"]
17
+ "email": ["can't be blank", "is too short (minimum is 3 characters)"]
18
+ }
19
+ }
20
+ }
21
+ eos
22
+
23
+ %>
24
+
25
+ <%= render partial: "kuppayam/api/docs/example", locals: {
26
+ negative_case: true,
27
+ example_id: "neg_case_3",
28
+ api_title: api_title,
29
+ api_input: api_input,
30
+ api_output: api_output
31
+ } %>
@@ -0,0 +1,49 @@
1
+ <%
2
+
3
+ api_title = "Positive Case - 1 - should create the profile"
4
+
5
+ api_input = <<-eos
6
+ {
7
+ "name": "Name",
8
+ "gender": "male",
9
+ "date_of_birth": "10/10/1980",
10
+ "email": "name@domain.com",
11
+ "country_id": "1",
12
+ "city_id": "2"
13
+ }
14
+ eos
15
+
16
+ api_output = <<-eos
17
+ {
18
+ "success": true,
19
+ "alert": {
20
+ "heading": "The Profile has been created successfully",
21
+ "message": "You may access the profile API with API token to get the profile details in future"
22
+ },
23
+ "data": {
24
+ "user": {
25
+ "id": 8,
26
+ "name": "K P Varma",
27
+ "username": "4106947a",
28
+ "email": "kpv@kpvarma.com",
29
+ "phone": "",
30
+ "designation": "",
31
+ "super_admin": "",
32
+ "token_created_at": "",
33
+ "registration_id": "",
34
+ "gender": "male",
35
+ "date_of_birth": "1954-10-27"
36
+ }
37
+ }
38
+ }
39
+ eos
40
+
41
+ %>
42
+
43
+ <%= render partial: "kuppayam/api/docs/example", locals: {
44
+ negative_case: false,
45
+ example_id: "pos_case_1",
46
+ api_title: api_title,
47
+ api_input: api_input,
48
+ api_output: api_output
49
+ } %>
@@ -0,0 +1,34 @@
1
+ <%
2
+
3
+ api_title = "Negative Case - 1 - should set proper errors if api token is not present"
4
+
5
+ api_input = <<-eos
6
+ {
7
+ "name": "Name",
8
+ "gender": "male",
9
+ "date_of_birth": "10/10/1980",
10
+ "email": "name@domain.com",
11
+ "country_id": "1",
12
+ "city_id": "2"
13
+ }
14
+ eos
15
+
16
+ api_output = <<-eos
17
+ {
18
+ "success": false,
19
+ "errors": {
20
+ "heading": "Invalid API Token",
21
+ "message": "Use the API Token you have received after accepting the terms and agreement"
22
+ }
23
+ }
24
+ eos
25
+
26
+ %>
27
+
28
+ <%= render partial: "kuppayam/api/docs/example", locals: {
29
+ negative_case: true,
30
+ example_id: "neg_case_1",
31
+ api_title: api_title,
32
+ api_input: api_input,
33
+ api_output: api_output
34
+ } %>
@@ -0,0 +1,34 @@
1
+ <%
2
+
3
+ api_title = "Negative Case - 2 - should set proper errors if the profile already exists"
4
+
5
+ api_input = <<-eos
6
+ {
7
+ "name": "Name",
8
+ "gender": "male",
9
+ "date_of_birth": "10/10/1980",
10
+ "email": "name@domain.com",
11
+ "country_id": "1",
12
+ "city_id": "2"
13
+ }
14
+ eos
15
+
16
+ api_output = <<-eos
17
+ {
18
+ "success": false,
19
+ "errors": {
20
+ "heading": "A profile already exists for the mobile number you have provided",
21
+ "message": "You are trying to create a profile once again when you already have a profile. Use Profile API with your API Token, to get your profile details and use them instead of creating a new one."
22
+ }
23
+ }
24
+ eos
25
+
26
+ %>
27
+
28
+ <%= render partial: "kuppayam/api/docs/example", locals: {
29
+ negative_case: true,
30
+ example_id: "neg_case_2",
31
+ api_title: api_title,
32
+ api_input: api_input,
33
+ api_output: api_output
34
+ } %>
@@ -0,0 +1,31 @@
1
+ <%
2
+
3
+ api_title = "Negative Case - 3 - should set proper errors if the inputs are not correct"
4
+
5
+ api_input = <<-eos
6
+ {}
7
+ eos
8
+
9
+ api_output = <<-eos
10
+ {
11
+ "success": false,
12
+ "errors": {
13
+ "heading": "Creating Profile Failed",
14
+ "message": "Check if all mandatory details are passed. Refer the error details for technical information",
15
+ "details": {
16
+ "name": ["can't be blank", "is too short (minimum is 3 characters)"]
17
+ "email": ["can't be blank", "is too short (minimum is 3 characters)"]
18
+ }
19
+ }
20
+ }
21
+ eos
22
+
23
+ %>
24
+
25
+ <%= render partial: "kuppayam/api/docs/example", locals: {
26
+ negative_case: true,
27
+ example_id: "neg_case_3",
28
+ api_title: api_title,
29
+ api_input: api_input,
30
+ api_output: api_output
31
+ } %>
@@ -0,0 +1,49 @@
1
+ <%
2
+
3
+ api_title = "Positive Case - 1 - should create the profile"
4
+
5
+ api_input = <<-eos
6
+ {
7
+ "name": "Name",
8
+ "gender": "male",
9
+ "date_of_birth": "10/10/1980",
10
+ "email": "name@domain.com",
11
+ "country_id": "1",
12
+ "city_id": "2"
13
+ }
14
+ eos
15
+
16
+ api_output = <<-eos
17
+ {
18
+ "success": true,
19
+ "alert": {
20
+ "heading": "The Profile has been updated successfully",
21
+ "message": "You may access the profile API with API token to get the profile details in future"
22
+ },
23
+ "data": {
24
+ "user": {
25
+ "id": 8,
26
+ "name": "K P Varma",
27
+ "username": "4106947a",
28
+ "email": "kpv@kpvarma.com",
29
+ "phone": "",
30
+ "designation": "",
31
+ "super_admin": "",
32
+ "token_created_at": "",
33
+ "registration_id": "",
34
+ "gender": "male",
35
+ "date_of_birth": "1954-10-27"
36
+ }
37
+ }
38
+ }
39
+ eos
40
+
41
+ %>
42
+
43
+ <%= render partial: "kuppayam/api/docs/example", locals: {
44
+ negative_case: false,
45
+ example_id: "pos_case_1",
46
+ api_title: api_title,
47
+ api_input: api_input,
48
+ api_output: api_output
49
+ } %>
@@ -1,8 +1,9 @@
1
1
  en:
2
2
  api:
3
3
  general:
4
- heading: "Invalid API Token"
5
- message: "Use the API Token you have received after accepting the terms and agreement"
4
+ permission_denied:
5
+ heading: "Invalid API Token"
6
+ message: "Use the API Token you have received after accepting the terms and agreement"
6
7
  register:
7
8
  device_blocked:
8
9
  heading: "This device is blocked"
@@ -80,6 +81,12 @@ en:
80
81
  user_already_exists:
81
82
  heading: "A profile already exists for the mobile number you have provided"
82
83
  message: "You are trying to create a profile once again when you already have a profile. Use Profile API with your API Token, to get your profile details and use them instead of creating a new one."
84
+ user_does_not_exists:
85
+ heading: "Profile doesn't exists for the mobile number you have provided"
86
+ message: "You are trying to create a profile once again when you already have a profile. Use Profile API with your API Token, to get your profile details and use them instead of creating a new one."
83
87
  profile_created:
84
- heading: "The Profile has been created successfully"
85
- message: "You may access the profile API with API token to get the profile details in future"
88
+ heading: "The Profile has been saved successfully"
89
+ message: "You may access the profile API with API token to get the profile details in future"
90
+ invalid_inputs:
91
+ heading: "Saving Profile Failed"
92
+ message: "Check if all mandatory details are passed. Refer the error details for technical information"
@@ -1,8 +1,9 @@
1
1
  en:
2
2
  api:
3
3
  general:
4
- heading: "Invalid API Token"
5
- message: "Use the API Token you have received after accepting the terms and agreement"
4
+ permission_denied:
5
+ heading: "Invalid API Token"
6
+ message: "Use the API Token you have received after accepting the terms and agreement"
6
7
  register:
7
8
  device_blocked:
8
9
  heading: "This device is blocked"
@@ -80,6 +81,12 @@ en:
80
81
  user_already_exists:
81
82
  heading: "A profile already exists for the mobile number you have provided"
82
83
  message: "You are trying to create a profile once again when you already have a profile. Use Profile API with your API Token, to get your profile details and use them instead of creating a new one."
84
+ user_does_not_exists:
85
+ heading: "Profile doesn't exists for the mobile number you have provided"
86
+ message: "You are trying to create a profile once again when you already have a profile. Use Profile API with your API Token, to get your profile details and use them instead of creating a new one."
83
87
  profile_created:
84
- heading: "The Profile has been created successfully"
85
- message: "You may access the profile API with API token to get the profile details in future"
88
+ heading: "The Profile has been saved successfully"
89
+ message: "You may access the profile API with API token to get the profile details in future"
90
+ invalid_inputs:
91
+ heading: "Saving Profile Failed"
92
+ message: "Check if all mandatory details are passed. Refer the error details for technical information"
data/lib/usman/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Usman
2
- VERSION = '0.2.6'
2
+ VERSION = '0.2.7'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: usman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - kpvarma
@@ -392,6 +392,10 @@ files:
392
392
  - app/views/usman/api/v1/docs/accept_tac/_neg_case_2.html.erb
393
393
  - app/views/usman/api/v1/docs/accept_tac/_neg_case_3.html.erb
394
394
  - app/views/usman/api/v1/docs/accept_tac/_pos_case_1.html.erb
395
+ - app/views/usman/api/v1/docs/create_profile/_neg_case_1.html.erb
396
+ - app/views/usman/api/v1/docs/create_profile/_neg_case_2.html.erb
397
+ - app/views/usman/api/v1/docs/create_profile/_neg_case_3.html.erb
398
+ - app/views/usman/api/v1/docs/create_profile/_pos_case_1.html.erb
395
399
  - app/views/usman/api/v1/docs/register/_neg_case_1.html.erb
396
400
  - app/views/usman/api/v1/docs/register/_neg_case_2.html.erb
397
401
  - app/views/usman/api/v1/docs/register/_neg_case_3.html.erb
@@ -404,6 +408,10 @@ files:
404
408
  - app/views/usman/api/v1/docs/resend_otp/_neg_case_3.html.erb
405
409
  - app/views/usman/api/v1/docs/resend_otp/_neg_case_4.html.erb
406
410
  - app/views/usman/api/v1/docs/resend_otp/_pos_case_1.html.erb
411
+ - app/views/usman/api/v1/docs/update_profile/_neg_case_1.html.erb
412
+ - app/views/usman/api/v1/docs/update_profile/_neg_case_2.html.erb
413
+ - app/views/usman/api/v1/docs/update_profile/_neg_case_3.html.erb
414
+ - app/views/usman/api/v1/docs/update_profile/_pos_case_1.html.erb
407
415
  - app/views/usman/api/v1/docs/verify_otp/_neg_case_1.html.erb
408
416
  - app/views/usman/api/v1/docs/verify_otp/_neg_case_2.html.erb
409
417
  - app/views/usman/api/v1/docs/verify_otp/_neg_case_3.html.erb