Git Product home page Git Product logo

dreambook_be's Introduction

dreambook_be's People

Contributors

brycesimonds avatar gwen-marina avatar nikkyrojas avatar pdthomson avatar sdecesari avatar teecaud avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

dreambook_be's Issues

Blog Comment

A comment will have

  • text field
  • belong to a blog

API Get request for a single User

When I make an API call to,
GET '/api/v1/user/:user_id'
I get a json response for one user if they exist

{
'data': [
{
'id': '1', 
'type': 'user', 
'attributes':
{
'user_name': poke_master_9000,
'email': [email protected],
'password': test123,
'blogs': 
[
{
 'id': 1,
'blog_id': 1,
'contents': 'WHY GOLDBERG?'
]}
},
{
'comments': 
[ 'id': 1,
'blog_id': 1,
'user_id': 1,
'comment_text': 'You have weird dreams my guy'
]
}
}

User/Dreamer

A User will have

  • A name
  • An email
  • Password
  • Many Blog Posts

AOI Get request all books

When I make a,
GET request to the book api
my JSON is as follows:

{
'data': [
{
'id': '1',
'type': 'book',
'attributes':
{
'author_name': 'string',
'title': 'book_title'
},
{
'id': '2',
'type': 'book',
'attributes':
{
'author_name': 'string',
'title': 'book_title'
}
]

API Get request All Users

When I make an API request from,
'GET /api/v1/users'
I get back all users in a JSON response:

{
'data': [
{
'id': '1', 
'type': 'user', 
'attributes':
{
'user_name': poke_master_9000,
'email': [email protected],
'blogs': 
[
{
 'id': 1,
'title': 'Tickle Goldberg',
'contents': 'WHY GOLDBERG?'
]
},
{
'comments': 
[ 'id': 1,
'blog_id': 1,
'user_id': 1,
'comment_text': 'You have weird dreams my guy'
]
},
{
'id': '2', 
'type': 'user', 
'attributes':
{
'user_name': digimon_master_9000,
'email': [email protected],
'blogs': 
[
{
 'id': 1,
'title': More Goldberg tickling,
'contents': 'WHY GOLDBERG?'
]
},
{
'comments': 
[ 'id': 2,
'blog_id': 1,
'user_id': 1,
'comment_text': 'Agreed you crazy person'
]
}

Users Blog

A blog will have

  • Title
  • Text Field
  • Private/Public (boolean)
  • Belong to user
  • Have Many Comments

API Get request all Movies

When I make a,
GET request to the movie api
my JSON is as follows:

{
'data': [
{
'id': '1',
'type': 'movie',
'attributes':
{
'poster_path': 'string' or null if poster_path doesnt exist,
'title': 'movie_title'
},
{
'id': '2',
'type': 'movie',
'attributes':
{
'poster_path': 'string' or null if poster_path doesnt exist,
'title': 'movie_title'
}
]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.