Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set the data format between front-backend and backend-training model. #10

Closed
baldandbrave opened this issue Oct 4, 2018 · 2 comments
Closed
Assignees
Labels
help wanted Extra attention is needed
Milestone

Comments

@baldandbrave
Copy link
Owner

We have the data format of the training data. Please @Dvangelion set the data format between the backend and training model.

@baldandbrave baldandbrave changed the title Set the data format for interactive data format between front-backend and backend-training model. Set the data format between front-backend and backend-training model. Oct 4, 2018
@4ban 4ban added this to the Iteration 1 milestone Oct 4, 2018
@baldandbrave baldandbrave added the help wanted Extra attention is needed label Oct 8, 2018
@Dvangelion
Copy link
Collaborator

The model outputs the probability of user behaviours. i.e., {"adding to cart":0.5, "purchase":0.5}. I'll let you know after training is done.

@4ban
Copy link
Collaborator

4ban commented Oct 9, 2018

Guys @baldandbrave @Dvangelion @Lyncis @smcheraghi , we need to specify the REST API queries that we could start preparing the frontend for the backend.

Example of queries that the front should send:

HTTP request Action Example
GET Get all goods http://backend.com/api/goods
GET Get one good http://backend.com/api/goods/1
POST Create good http://backend.com/api/goods
DELETE Delete good http://backend.com/api/goods/1
PUT Update good http://backend.com/api/goods/1

And example of data that will return for every query:
For example GET one good should return for front-end JSON like this:

{ 
"id": 1, 
"title" : 
"Santa pants", 
"cost": 99999, 
"recommendations" : [{
    "id": 2,
    "id": 3,
    "id": 4
    }]
}

After that I can create a fake json server that will send me the data like this and independently work on front-end

@Lyncis Lyncis closed this as completed Nov 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants