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

Add bookmark API functionality to API Catalog view #176

Closed
18 tasks done
bajiat opened this issue Jun 26, 2015 · 4 comments
Closed
18 tasks done

Add bookmark API functionality to API Catalog view #176

bajiat opened this issue Jun 26, 2015 · 4 comments
Assignees
Milestone

Comments

@bajiat
Copy link
Contributor

bajiat commented Jun 26, 2015

Users need to be able to see both available APIs and the APIs they have subscribed to on the user dashboard. They also need to have method for subscribing to or bookmarking APIs.
User story: As Minh (API consumer), I want to find Apinf hosted APIs.

Definition of done

  • Add API catalog to user dashboard view
  • Create button for bookmarking APIs.
  • Add 'bookmark' button(s) to API Catalog table
    • Create additional column in API Catalog table (tabular)
    • Add the 'bookmark' template as a template cell in each row newly of created column
    • Alert, or log, 'hello world' when 'boookmark' button is clicked
    • Console.log document ID when 'bookmark' button is clicked
    • Console.log user ID when 'bookmark' button is clicked
  • Associate users with API backends via a foreign key relationship
    • Decide how to associate users with backends, via a relationship (foreign key) field
  • Display bookmarks list in HTML template
    • Generate list of API bookmarks
    • Show API ID for each bookmark in template
    • Inside template helper, create array of API IDs (from bookmarks)
    • Return API Backends query (using API IDs array)
  • Display API bookmark titles in template, {{#each apiBackends }}
@bajiat bajiat added MVP ready and removed ready labels Jun 26, 2015
@bajiat bajiat added this to the Sprint 6 milestone Jun 29, 2015
@JuusoV JuusoV added in progress and removed ready labels Jun 30, 2015
@brylie brylie changed the title Add API catalogue template to user dashboard Add bookmark API functionality to API Catalog view Jul 1, 2015
@brylie
Copy link
Contributor

brylie commented Jul 1, 2015

There are two basic approaches to storing the bookmarks:

  • bookmarkedApiIdsfield in user profile - containing an array of API IDs the user has bookmarked
  • bookmarkedByIds field in ApiBackend collection - containing an array of User IDs who have bookmarked the API

@brylie
Copy link
Contributor

brylie commented Jul 1, 2015

@JuusoV, I have rewritten this task to include some specific, and sequential, steps you can take to make progress. I will also link to relevant documentation and sourcecode files ASAP.

@JuusoV
Copy link
Contributor

JuusoV commented Jul 8, 2015

Still needed to add some styles.
Thanks for help @brylie and @frenchbread

@JuusoV
Copy link
Contributor

JuusoV commented Jul 9, 2015

TODO: PR

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

3 participants