Skip to content
Snippets Groups Projects
Commit c5837cf9 authored by Gabriel Engel's avatar Gabriel Engel
Browse files

make sample data into array

parent d60ae065
No related branches found
No related tags found
No related merge requests found
...@@ -182,19 +182,38 @@ Api.addRoute 'remove/:integrationId/:userId/:token', authRequired: true, ...@@ -182,19 +182,38 @@ Api.addRoute 'remove/:integrationId/:userId/:token', authRequired: true,
Api.addRoute 'sample/:integrationId/:userId/:token', authRequired: true, Api.addRoute 'sample/:integrationId/:userId/:token', authRequired: true,
get: -> get: ->
console.log 'Sample integration' console.log 'Sample Integration'
return {} = return {} =
statusCode: 200 statusCode: 200
body: body: [
token: Random.id(24)
channel_id: Random.id()
channel_name: 'general'
timestamp: new Date
user_id: Random.id()
user_name: 'rocket.cat'
text: 'Sample text 1'
trigger_word: 'Sample'
],[
token: Random.id(24)
channel_id: Random.id()
channel_name: 'general'
timestamp: new Date
user_id: Random.id()
user_name: 'rocket.cat'
text: 'Sample text 2'
trigger_word: 'Sample'
],[
token: Random.id(24) token: Random.id(24)
channel_id: Random.id() channel_id: Random.id()
channel_name: 'general' channel_name: 'general'
timestamp: new Date timestamp: new Date
user_id: Random.id() user_id: Random.id()
user_name: 'rocket.cat' user_name: 'rocket.cat'
text: 'Sample text' text: 'Sample text 3'
trigger_word: 'Sample' trigger_word: 'Sample'
]
Api.addRoute 'info/:integrationId/:userId/:token', authRequired: true, Api.addRoute 'info/:integrationId/:userId/:token', authRequired: true,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment