lowitty / spark

New development environment for Huohua
1 stars 1 forks source link

API discussion #1

Open rip-tyang opened 9 years ago

rip-tyang commented 9 years ago

Modals

User

  1. get/set name
  2. get/set one_linear
  3. get/set description
  4. get/set avatar

    User status

  5. is loged in?
  6. current user

    Pages

    Landing

  7. Ama pages, sorted by time.
  8. today's three mentors
  9. *user status

    AMA

  10. questions of this user
  11. answer of each question
  12. every comments about this page

    Profile

  13. *user
  14. questions of current user
  15. comments of current user
  16. answers of current user
lowitty commented 9 years ago

Hi Thomas,

I finished the User and User status part draft APIs and pushed to the repo. It’s the very draft version but should be functioning now.

Note that these are all draft functions which means the testing is very limited. Please feel free to contact me if there is some errors or miss-match with your requests.

Check the red part for the location of the function.

For the user part, you can check the view of ../users/show.html.erb and you will figure out all of the things.

BRs//Yannik

On Apr 27, 2015, at 15:29, Thomas Yang notifications@github.com wrote:

Modals

User

get/set name get/set one_linear get/set description get/set avatar These can all be found in session_helper.rb, with function name: current_user

update/setters: user_controller.rb

User status

is loged in? current user check the session_helper.rb Pages

Landing

Ama pages, sorted by time. today's three mentors *user status

Check the amas_controller.rb

AMA

questions of this user answer of each question every comments about this page Profile

*user questions of current user comments of current user answers of current user — Reply to this email directly or view it on GitHub https://github.com/lowitty/spark/issues/1.