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

Personal Center interface #10

Open
Shaofanl opened this issue Aug 14, 2015 · 3 comments
Open

Personal Center interface #10

Shaofanl opened this issue Aug 14, 2015 · 3 comments

Comments

@Shaofanl
Copy link
Contributor

Raw edition of PC interface:

  • Run python manager.py testinit
  • Login as test, psw test
  • Get data from person/mine and person/favorite
@leasunhy
Copy link
Contributor

Ahh... I wrote an issue on my phone and forgot to submit..= =

Thx!

@leasunhy
Copy link
Contributor

Something has changed in the requirements...

First, now we need to display all the references for circuits with a 'Task' tag. That said, we need to know not only whether it is related to task, but also which tasks has referenced it... Wow, that's kind of hard to maintain, indeed.... Maybe we should persuade the product manager to give it up? 😆

Second, we need interface of notifications.
For the time of being, the frontend needs json like:

{
  "source": "experiment record",
  "content": "I'm a mengmengda notification",
  "read": true
}

source: Simply a string representing the type of the notification. The notifications are divided into four groups:

  • Experiment Reminders. These notifications are used to remind the user of the experiment.
  • Experiment Records. Used to remind the user to do experiment records.
  • Database. Notifications from the New Database (not named yet..).
  • Taskhall. Notifications from the task hall.

content: The content of notifications.

read: Whether the notification has been read or not.

@leasunhy
Copy link
Contributor

Update: Maybe an id of the notification will help design the interface.

{
  "id": 233,
  "source": "experiment record",
  "content": "I'm a mengmengda notification",
  "read": true
}

My draft of the interface is as follows.

To get all notifications of this specific user, GET /person/notifications.

And, using a RESTful API and a base url of /person/notifications/<id>:

  • POST: Mark the notification with id = <id> as read.
  • DELETE: Delete the notification with id = <id>.

@leasunhy leasunhy changed the title Personal Center interface Bank & Personal Center interface Sep 7, 2015
@leasunhy leasunhy changed the title Bank & Personal Center interface Personal Center interface Sep 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants