JS16_ProjectA icon indicating copy to clipboard operation
JS16_ProjectA copied to clipboard

News collection

Open sacdallago opened this issue 8 years ago • 2 comments

Dear all,

time has come to put some maintenance in the API side of life. This is voluntary and will not be graded, but it would we very nice from your side to do. After this you can officially write on your CV contributor to opensource project of great success and post the link to this repo as well as articles from the guardian and such :)

As I was mentioning the other day on the google group, it would be awesome to have a new collection and respective API call to write some news/notes on a specific character. The idea behind is this to have something like a paragraph per document with some news (similar to a comment, but being curated by people that have the token, valid information).

The schema could look something like:

{
  character: String, //charname as in char collection
  text: String,
  createdAt: Date,
  ...
}

A user should be able to

  • POST new documents of this type specifying only:
    • character name (slug, or anything BUT the _id)
    • text to be put in the note
  • GET the news for a given character sorted by createdAt and be able to limit the result to the last x entries ( something like &limit=5, I guess @Adiolis has experience with this).

Whoever takes this can express a timeframe in which they would like to work on this and think they can deliver (I think it should not take longer than 1 week).

@Adiolis @togiberlin @kordianbruck @boriside one of you interested? If not, then say no please :)

sacdallago avatar Apr 27 '16 19:04 sacdallago

@sacdallago I did the basic schema quickly. This week including weekend I'll be busy finalizing my master thesis outline and registration...Therefore I have quite limited time... 😕

togiberlin avatar Apr 27 '16 20:04 togiberlin

Thanks @togiberlin for this first jump into the problem :) maybe someone can take over from here :) Good luck with the thesis :O

sacdallago avatar Apr 27 '16 20:04 sacdallago