dreambook_be's Introduction
dreambook_be's People
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'
]
}
API End Point Get all Users Blogs
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.