add new files
This commit is contained in:
BIN
app/views/api/.DS_Store
vendored
Normal file
BIN
app/views/api/.DS_Store
vendored
Normal file
Binary file not shown.
7
app/views/api/auth/login.json.jbuilder
Normal file
7
app/views/api/auth/login.json.jbuilder
Normal file
@@ -0,0 +1,7 @@
|
||||
if @out[0] == true
|
||||
json.set! :status, @out[0]
|
||||
json.set! :data, @out[1]
|
||||
else
|
||||
json.set! :status, @out[0]
|
||||
json.set! :message,@out[1]
|
||||
end
|
||||
7
app/views/api/auth/logout.json.jbuilder
Normal file
7
app/views/api/auth/logout.json.jbuilder
Normal file
@@ -0,0 +1,7 @@
|
||||
if (@user)
|
||||
json.status true
|
||||
json.extract! @user, :id
|
||||
else
|
||||
json.status false
|
||||
json.message "Logout Failed."
|
||||
end
|
||||
8
app/views/api/batch_line_items/register.json.jbuilder
Normal file
8
app/views/api/batch_line_items/register.json.jbuilder
Normal file
@@ -0,0 +1,8 @@
|
||||
if @out[0] == true
|
||||
json.set! :status, @out[0]
|
||||
json.set! :serial_no, @out[1]
|
||||
json.set! :wristband_code, @out[2]
|
||||
else
|
||||
json.set! :status, @out[0]
|
||||
json.set! :message,@out[1]
|
||||
end
|
||||
2
app/views/api/batches/batch_end.json.jbuilder
Normal file
2
app/views/api/batches/batch_end.json.jbuilder
Normal file
@@ -0,0 +1,2 @@
|
||||
json.set! :status, @out[0]
|
||||
json.set! :message,@out[1]
|
||||
7
app/views/api/batches/batch_progress_list.json.jbuilder
Normal file
7
app/views/api/batches/batch_progress_list.json.jbuilder
Normal file
@@ -0,0 +1,7 @@
|
||||
if @out[0] == true
|
||||
json.set! :status, @out[0]
|
||||
json.set! :data, @out[1]
|
||||
else
|
||||
json.set! :status, @out[0]
|
||||
json.set! :message,@out[1]
|
||||
end
|
||||
7
app/views/api/batches/create.json.jbuilder
Normal file
7
app/views/api/batches/create.json.jbuilder
Normal file
@@ -0,0 +1,7 @@
|
||||
if @out[0] == true
|
||||
json.set! :status, @out[0]
|
||||
json.set! :data, @out[1]
|
||||
else
|
||||
json.set! :status, @out[0]
|
||||
json.set! :message,@out[1]
|
||||
end
|
||||
7
app/views/api/batches/resume_batch.json.jbuilder
Normal file
7
app/views/api/batches/resume_batch.json.jbuilder
Normal file
@@ -0,0 +1,7 @@
|
||||
if @out[0] == true
|
||||
json.set! :status, @out[0]
|
||||
json.set! :data, @out[1]
|
||||
else
|
||||
json.set! :status, @out[0]
|
||||
json.set! :message,@out[1]
|
||||
end
|
||||
Reference in New Issue
Block a user