beFree API

beFree - Where the human mind and body is art.

This is the API beFree consumes. You can read more about the website by visiting befree.com

Auth 19

Routes for user authentication including register, login, reset password, etc

Description

Get current loggedIn user data

Description

This is the login route to access into beFree.

Headers
KeyValueDescription
Content-Typeapplication/json

Json Content Type

Body
{ "email": "kebin1421@hotmail.com", "password": "angeldelamuerte" }
Description

This is the login route to register into beFree. The password is also encrypted using the latest technology in encryption, hash and salt.

Headers
KeyValueDescription
Content-Typeapplication/json

Json Content Type

Body
{ "username": "", "name": "", "email": "", "password": "", "password2": "", "address":"" }
Description

Generetate password token and send it via email to the user that requested it.

Headers
KeyValueDescription
Content-Typeapplication/json

Json Content Type

Body
{ "email": "" }
Description

Route to reset password according to the token stored in DB. Otherwise it will fail.

Headers
KeyValueDescription
Content-Typeapplication/json

Json Content Type

URL Variables
KeyValueDescription
userId
resetToken
Body
{ "password": "" }
Description

Update the basic information of the current loggedIn user. Said information can be the username, email, website, twitter, facebook, youtube and instagram.

Headers
KeyValueDescription
Content-Typeapplication/json

Json Content Type

Body
{ "username": "kirasiris", "email": "kebin1421@hotmail.com.mx", "work_status": "actor", "website": "https://kevinurielfonseca.com.mx", "twitter": "https://twitter.com/kirasiris", "facebook": "https://facebook.com/kevinuriel.azuarafonseca", "youtube": "https://youtube.com/" }
Description

Update the current loggedIn user experience by Id. Also is worth to mention that any time a put request is sent, a new Id(document) will be created.

The Id corresponding to X experience will always be different. Always

Headers
KeyValueDescription
Content-Typeapplication/json

Json Content Type

Body
{ "title": "Receiving Clerk II", "company": "Fort Worth, TX", "location": "Ajinomoto Foods", "from": "1/18/2019", "to": "", "current": true, "description": "Boring and strefull job" }
Description

Add experience to current loggedIn user

Headers
KeyValueDescription
Content-Typeapplication/json

Json Content Type

Body
{ "title": "Receiving Clerk", "company": "Ajinomoto Foods", "location": "Fort Worth, TX", "from": "1/03/2020", "to": "", "current": true, "description": "In charge of making and receiving orders" }
Description

Add certificate to current loggedIn user

Headers
KeyValueDescription
Content-Typeapplication/json

Json Content Type

Body
{ "name": "CompTIA A+ ce Certification", "organization": "CompTIA", "from": "01/08/2019", "to": "01/08/2022", "current": false, "credentialId": "EM8EKJEEQPFQQWCB", "credentialURL": "https://www.youracclaim.com/badges/72a35422-67ee-4f4e-9d3d-9015ec3ad926", "description": "Earners of the CompTIA A+ certification are proven problem solvers who are able to perform critical IT support tasks including device configuration, data backup and recovery, and operating system configuration. CompTIA A+ certified professionals have demonstrated baseline security skills for IT support roles and are able to detect and remove malware, address privacy concerns, and troubleshoot core service challenges." }
Description

Update the current loggedIn user education by Id. Also is worth to mention that any time a put request is sent, a new Id(document) will be created.

The Id corresponding to X education will always be different; Always.

Headers
KeyValueDescription
Content-Typeapplication/json

Json Content Type

Body
{ "school": "Byron Nelson Highschool", "degree": "Diploma", "major": "N/AA", "from": "04/13/2014", "to": "05/29/2016", "current": true, "description": "The best highschool out there!" }
Description

Update the current loggedIn user certificates by Id. Also is worth to mention that any time a put request is sent, a new Id(document) will be created.

The Id corresponding to X certificate will always be different; Always.

Headers
KeyValueDescription
Content-Typeapplication/json

Json Content Type

Body
{ "name": "CompTIA IT Fundamentals Certification", "organization": "CompTIA", "from": "04/30/2018", "to": "", "current": true, "credentialId": "TMRBL8WHHL4Q1QW8", "credentialURL": "https://www.youracclaim.com/badges/9b803e72-68da-4d53-bfd4-b722f2da463e", "description": "Achieve a passing score on the CompTIA IT Fundamentals exam" }
Description

Add education to current loggedIn user

Headers
KeyValueDescription
Content-Typeapplication/json

Json Content Type

Body
{ "school": "Graciano Sanchez", "degree": "Diploman", "major": "N/A", "from": "08/25/2004", "to": "08/29/2010", "current": false, "description": "La escuela con los peores maestros del mundo" }
Description

Update the about information of the current loggedIn user. Said information can be the name, sex, company, age, address, bio and fetishes.

Headers
KeyValueDescription
Content-Typeapplication/json

Json Content Type

Body
{ "name": "", "sex": "", "company": "", "age": "", "address": "", "bio": "", "fetishes": "" }
Description

Update the password of the current loggedIn user.

Headers
KeyValueDescription
Content-Typeapplication/json

Json Content Type

Body
{ "currentpassword": "", "newpassword": "" }
Description

Delete the current loggedIn user account from the DB but only after verifying email is the same as the one stored in the DB; otherwise fail!.

Headers
KeyValueDescription
Content-Typeapplication/json

Json Content Type

Body
{ "email": "" }
Description

Logout from beFree and Clear token cookie from localStorage after 1min.

Public/Resumes 5

Description

Add Resume per user. Users can have more than one resume.

Headers
KeyValueDescription
Content-Typeapplication/json

Json Content Type

Body
{ "title": "My second resume", "email": "kebin1421@hotmail.com", "address": "10153 Red Bluff Ln Fort Worth, TX", "name": "Kevin Uriel Azuara Fonseca", "summary": "I entered into the web development industry back when I was just 13 and since then I have never stop challenging myself" }
Description

Fetch all the resumes from DB

Description

Update the corresponding resume by Id. Block access to any unauthorized users

Headers
KeyValueDescription
Content-Typeapplication/json

Json Content Type

Body
{ "title": "My third resume", "email": "kebin1421@hotmail.com", "address": "10153 Red Bluff Ln Fort Worth, TX", "name": "Kevin Uriel Azuara Fonseca", "summary": "I entered into the web development industry back when I was just 13 and since then I have never stop challenging myself" }
Description

Delete resume corresponding to the param.id found in the URL

Public/Favorites 1

Public/Reports 7

Description

Add report of type post

Headers
KeyValueDescription
Content-Typeapplication/json

Json Content Type

Body
{ "text": "The second worst post ever" }
Description

Add report of type user

Headers
KeyValueDescription
Content-Typeapplication/json

Json Content Type

Body
{ "text": "Brian never answers his message. I think he has already left beFree. Don't you guys think is better to close this account?" }
Description

Add report of type producer

Headers
KeyValueDescription
Content-Typeapplication/json

Json Content Type

Body
{ "text": "The videos are somewat good but he needs to improvise the quality of its videos, otherwise, I'm afraid everyone will stop watching them for good!." }
Description

Add report of type product

Headers
KeyValueDescription
Content-Typeapplication/json

Json Content Type

Body
{ "text": "The T-shirts are not the proper size as mentioned in the post description!. I will never buy his shit ever again!.." }
Description

Add report of type video

Headers
KeyValueDescription
Content-Typeapplication/json

Json Content Type

Body
{ "text": "The worst video ever" }
Description

Get all reports from DB

Public/Reviews for Products 6

Description

Add review for post!

Headers
KeyValueDescription
Content-Typeapplication/json
Body
{ "title": "Nice blog my dude!", "text": "I learned a lot from the construction industry", "rating": 5 }
Description

Fetch all post reviews from database

Description

Update post review from database

Headers
KeyValueDescription
Content-Typeapplication/json

Json Content Type

Body
{"text": "Everything seems to be working just fine for the product reviews by except the fetching of review by products"}
Description

Fetch post reviews from database by passing an Id as parameter

Public/Reviews for Posts 6

Description

Add review for post!

Headers
KeyValueDescription
Content-Typeapplication/json
Body
{ "title": "Nice blog my dude!", "text": "I learned a lot from the construction industry", "rating": 5 }
Description

Fetch all post reviews from database

Description

Update post review from database

Headers
KeyValueDescription
Content-Typeapplication/json

Json Content Type

Body
{"text": "Everything seems to be working just fine for the post reviews by except the fetching of review by post"}
Description

Fetch post reviews from database by passing an Id as parameter

Public/Reviews for Blog 6

Description

Add review for blog!

Headers
KeyValueDescription
Content-Typeapplication/json
Body
{ "title": "Nice blog my dude!", "text": "I learned a lot from the sex industry", "rating": 5 }
Description

Fetch all blog reviews from database

Description

Update blog review from database

Headers
KeyValueDescription
Content-Typeapplication/json

Json Content Type

Body
{"title": "Everything seems to be working just fine for the blog reviews"}
Description

Fetch blog reviews from database by passing an Id as parameter

Public/Reviews for Video 6

Headers
KeyValueDescription
Content-Typeapplication/json

Json Content Type

Body
{ "title": "Nice video boi", "text": "I learned a lot from the sex industry", "rating": 3 }
Description

Get all reviews from database and populate with video

Description

Fetch a review from database by Id and populate video

Description

Update review in database

Headers
KeyValueDescription
Content-Typeapplication/json

Json Content Type

Body
{ "title": "Had Fun" }
Description

Delete review from database

Headers
KeyValueDescription
Content-Typeapplication/json

Public/Products 6

Description

Creates a product

Headers
KeyValueDescription
Content-Typeapplication/json

Json Content Type

Body
{ "title": "My first product by kirasiris", "images": "https://i.etsystatic.com/16208357/r/il/abff4e/1324883042/il_570xN.1324883042_qnoe.jpg, https://lukreativedesign.com/WebRoot/Store15/Shops/7118b2c0-9d7d-47b5-a810-0ab9f28fd71a/59AA/A98F/728B/F38F/468F/0A48/3634/0A07/Lukreativedesign_Rick_Morty_Mens_Tee_Shirt_ml.jpg", "text": "Trying to sell a t-shirt", "commented": "no", "featured": "no", "price": 585.00, "size": ["large", "small"] }
Description

Fetch all products from database

Description

Update product from database

Headers
KeyValueDescription
Content-Typeapplication/json

Json Content Type

Body
{ "title": "My third product by kirasiris", "text": "Trying to sell a third t-shirt", "commented": "no", "size": ["large", "small", "medium"] }

Public/Videos 10

Description

Add video to database

Headers
KeyValueDescription
Content-Typeapplication/json

Json Content Type

Body
{ "producer": "5e1258ce45a6c414242ad45d", "title": "Fate/stay night: OST II - #24 Last Stardust", "text": "Fate/stay night: [Unlimited Blade Works] Original Soundtrack II - #24 Last Stardust (soundtrack edit) Music by Aimer, Hideyuki Fukasawa. Fate/stay night: [Unlimited Blade Works] OST II - Fate/stay night [Unlimited Blade Works] オリジナルサウンドトラック II [Epic/Beautiful/Emotional Music]", "video_url": "https://www.youtube.com/embed/qmaOdbQvbVQ", "thumbnail": "https://i.imgur.com/bwGcmyy.jpg", "featured": "no", "commented": "no", "status": "published", "term_id": ["anime", "african", "black"], "language": "english", "price": 50 }
Description

Update video from database

Headers
KeyValueDescription
Content-Typeapplication/json

Json Content Type

Body
{ "user": "5dc5e02767b0f815e448e073", "producer": "5df64cfccd4b9341d0ddedbb", "title": "Berserk AMV - Demons", "text": "This is an animated music video and take no credit for all media including video and music. All editing was done by myself.", "video_url": "https://www.youtube.com/embed/5BBywKxltrM", "featured": "yes", "commented": "yes", "status": "published", "term_id": ["18yearsold", "3way", "POV"], "language": "English" }
Description

Delete video from database

Headers
KeyValueDescription
x-auth-tokeneyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImlkIjoiNWRhNTUyNmY5YmI5NzYwOGY0M2QyOWY0In0sImlhdCI6MTU3MjQ5MzM2NCwiZXhwIjoxNTcyODUzMzY0fQ.RklKPe8hUGMohccTKDpgZ-IA-fbIVSXmHZRRadAl5X4
Description

Add like and/or remove like from video according to the current loggedIn user

Description

Add like and/or remove like from video according to the current loggedIn user

Description

Fetch videos in ASC order. Lowest to Highest Price

Query
KeyValueDescription
sortprice
Description

Fetch videos in DESC order. Highest to Lowest Price

Query
KeyValueDescription
sort-price

Public/Blogs 6

Description

Add blog

Headers
KeyValueDescription
Content-Typeapplication/json

Json Content Type

Body
{ "title": "Segundo Blog mis Morros!", "text": "A la verga pinches perros wuwuwuw", "term_id": ["News", "Maintenance"] }
Description

Update post from database

Headers
KeyValueDescription
Content-Typeapplication/json

Json Content Type

Body
{ "title": "Mi cuarto ultimo Post desde el Controller YAY", "text": "El texto de mi ultimo post desde el controlloer", "commented": "yes", "featured": "no" }

Public/Posts 9

Description

Create post

Headers
KeyValueDescription
Content-Typeapplication/json

Json Content Type

Body
{ "text": "Hello bitches III", "images": "https://images.pexels.com/photos/3408744/pexels-photo-3408744.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260" }
Description

Update post from database

Headers
KeyValueDescription
Content-Typeapplication/json

Json Content Type

Body
{ "text": "My third post", "status": "trash" }
Description

Pin / Unpin post from profile timeline. Only one per user allowed also.

Public/Producers 7

Description

Add producer to database

Headers
KeyValueDescription
Content-Typeapplication/json

Json Content Type

Body
{ "title": "My Third Producer producer", "text": "My third producer text", "address": "10153 Red Bluff Ln, Fort Worth, TX 76177", "status": "published" }
Description

Get single producer

Headers
KeyValueDescription
x-auth-tokeneyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImlkIjoiNWRhNTUyNmY5YmI5NzYwOGY0M2QyOWY0In0sImlhdCI6MTU3MjQ5MzM2NCwiZXhwIjoxNTcyODUzMzY0fQ.RklKPe8hUGMohccTKDpgZ-IA-fbIVSXmHZRRadAl5X4
Description

Updates single producer from database

Headers
KeyValueDescription
Content-Typeapplication/json

Json Content Type

Body
{ "title": "My Second producer", "slug": "my-second-producer", "text": "My second producer text", "address": "10153 Red Bluff Ln, Fort Worth, TX 76177", "status": "published" }
Description

Get producers within a radius of a specific zipcode

Public/Jobs 5

Headers
KeyValueDescription
Content-Typeapplication/json

Json Content Type

Body
{ "title": "Mi latest jobs", "post_image": "https://images.pexels.com/photos/2613260/pexels-photo-2613260.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500", "text": "El texto de mi segundo job", "featured": "yes", "commented": "no", "status": "published", "experience_level": "mid", "job_type": "part-time", "company_name": "ciConnector", "location": "Fort Worth, TX", "starting_at": "7.50", "provides_training": "yes", "security_clearance": "no", "address": "10153 Red Bluff Ln, Fort Worth, TX 76177" }
Headers
KeyValueDescription
x-auth-tokeneyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImlkIjoiNWRhNTUyNmY5YmI5NzYwOGY0M2QyOWY0In0sImlhdCI6MTU3MjQ5MzM2NCwiZXhwIjoxNTcyODUzMzY0fQ.RklKPe8hUGMohccTKDpgZ-IA-fbIVSXmHZRRadAl5X4
Headers
KeyValueDescription
x-auth-tokeneyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImlkIjoiNWRhNTUyNmY5YmI5NzYwOGY0M2QyOWY0In0sImlhdCI6MTU3MjQ5MzM2NCwiZXhwIjoxNTcyODUzMzY0fQ.RklKPe8hUGMohccTKDpgZ-IA-fbIVSXmHZRRadAl5X4
Body
{ "title": "Mi Tercer Pagina", "slug": "mi-tercer-pagina", "text": "El texto de mi tercer pagina", "commented": "yes", "menu": "no", "status": "published" }
Headers
KeyValueDescription
Content-Typeapplication/json

Json Content Type

Body
{ "featured": "yes", "commented": "no", "status": "published", "experience_level": "mid", "job_type": "part-time", "company_name": "myPorn", "location": "Fort Worth, TX", "starting_at": 7.5, "provides_training": "no", "security_clearance": "yes", "title": "Mi Primer Job Actualizado", "slug": "mi-primer-job-actualizado", "text": "El texto de mi primer job" }
Headers
KeyValueDescription
x-auth-tokeneyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImlkIjoiNWRhNTUyNmY5YmI5NzYwOGY0M2QyOWY0In0sImlhdCI6MTU3MjQ5MzM2NCwiZXhwIjoxNTcyODUzMzY0fQ.RklKPe8hUGMohccTKDpgZ-IA-fbIVSXmHZRRadAl5X4
Body
{ "title": "Mi Tercer Pagina", "slug": "mi-tercer-pagina", "text": "El texto de mi tercer pagina", "commented": "yes", "menu": "no", "status": "published" }

Public/Users 5

Headers
KeyValueDescription
Content-Typeapplication/json

Json Content Type

Body
{ "username": "GodHimself", "name": "John Salchichon Grande", "email": "kebin1422@hotmail.com", "password": "angeldelamuerte", "role": "founder", "status": "active", "address": "10153 Red Bluff Ln Fort Worth TX 76177" }
Headers
KeyValueDescription
x-auth-tokeneyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImlkIjoiNWRhNTUyNmY5YmI5NzYwOGY0M2QyOWY0In0sImlhdCI6MTU3MjQ5MzM2NCwiZXhwIjoxNTcyODUzMzY0fQ.RklKPe8hUGMohccTKDpgZ-IA-fbIVSXmHZRRadAl5X4
Headers
KeyValueDescription
Content-Typeapplication/json

Json Content Type

Body
{ "username": "cibra50" }