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

POST method for new lectures #3

Open
linanqiu opened this issue Jun 9, 2013 · 2 comments
Open

POST method for new lectures #3

linanqiu opened this issue Jun 9, 2013 · 2 comments

Comments

@linanqiu
Copy link
Member

linanqiu commented Jun 9, 2013

Also, give me the authentication method.

I'll be sending you a JSON that looks like this

[
  {
    "title": "Title 1",
    "description": "Unsorted",
    "url": "http://youtu.be/sbY3ZAT7r8E"
  },
  {
    "title": "Title 2",
    "description": "Unsorted",
    "url": "http://youtu.be/TqGeHqT8JC0"
  },
  {
    "title": "Title 3",
    "description": "Unsorted",
    "url": "http://youtu.be/lAUUwPpceM4"
  }
]

It will always be in a collection. Sorry ><

@jethrokuan
Copy link
Member

are you able to process your json in a different format? I want to stick to ember convention.

In your case, parse your json in this format:

{
     "checkpoints": [
      {
             "title": "pariatur",
             "description": "Libero in rerum nobis hic magnam itaque similique. Aspernatur corporis rem sapiente sunt    itaque  magnam minus qui. Neque dolor totam laboriosam quisquam.",
             "lesson": "aut",
             "lecturer": "dub",
             "url": "consequatur",
             "seab": "natus",
             "subject": "doloremque"
       },
      {
             "title": "pariatur",
             "description": "Libero in rerum nobis hic magnam itaque similique. Aspernatur corporis rem sapiente sunt    itaque  magnam minus qui. Neque dolor totam laboriosam quisquam.",
             "lesson": "aut",
             "lecturer": "dub",
             "url": "consequatur",
             "seab": "natus",
             "subject": "doloremque"
       }
   ]
}

and return in this format:

{
"checkpoints":
[
  {
    "title": "Title 1",
    "description": "Unsorted",
    "url": "http://youtu.be/sbY3ZAT7r8E"
  },
  {
    "title": "Title 2",
    "description": "Unsorted",
    "url": "http://youtu.be/TqGeHqT8JC0"
  },
  {
    "title": "Title 3",
    "description": "Unsorted",
    "url": "http://youtu.be/lAUUwPpceM4"
  }
]
}

@linanqiu
Copy link
Member Author

Easy. I'll do that. Sorry I missed out this email ><

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