Completed

Build me an API

Please Implement below API,

1. Registration service with /users endpoint for taking a JSON body with details such as,

FIELDS & VALIDATIONS

 Username - alphanumeric, no spaces

 Password – min length 8, at least one upper case letter & number

 Email – email id with email format

 DoB (Date of Birth) - ISO 8601 format

 Credit Card Number – This field is optional. If given should have 16 digits.

EXPECTED RESPONSES:

 If the request body fails to satisfy any of the basic validation checks return HTTP Status code: 400

 Reject requests if the user is under the age of 18 and return HTTP Status code: 403

 If the username has already been used reject the request and return HTTP Status code: 409

 A successful action should return HTTP Status code: 201

GET /users endpoint:

Consumer should be able to provide a filter (CreditCard=Yes/No) in his request. If “Yes” then should return Users registered with Credit Card Number.

If “No” then return Users registered without a Credit Card Number. Without any filter should return all the Registered Users.

2. Payment service with /payments endpoint for taking a JSON body with details such as,

FIELDS & VALIDATIONS

 Credit Card Number – 16 digits

 Amount – 3 digits

EXPECTED RESPONSES:

 If the request body fails to satisfy any of the basic validation checks return HTTP Status code: 400

 If credit card number is not registered against any Registered User return HTTP Status code: 404

 A successful payment should return HTTP Status code: 201

REQUIREMENTS:

 You are free to use any Programming Language or Framework you are comfortable with (Node.js express with nodemon?)

 Please include instructions for running the application

 We don’t need you to implement any Frontend code

 No need to use any Databases/in-memory Databases. You can use language provided data structures in place of that.

 We expect you to provide Unit Tests for your solution (Use postman)

Skills: JavaScript, Node.js, Express JS, API, Web Development

About the Client:
( 0 reviews ) London, United Kingdom

Project ID: #33991486

Awarded to:

rowangr2044

❤️️❤️️❤️️ Dear Client ❤️️❤️️❤️️ As a experienced backend developer, I am very happy to help you! I've been working on many projects using node.js for the past 9 years. My past creations are following: https://www.j More

£10 GBP in 7 days
(1 Review)
2.0

8 freelancers are bidding on average £28 for this job

programcoder19

I can make this Endpoints, the budget is significantly higher, because the budget you have mentioned is nearly miniscual and it can't be done in that range I will use Node.js Express and nodemon, I will also provide un More

£100 GBP in 1 day
(55 Reviews)
5.5
AKS1997

Hi, I can build your APIs in nodejs and MongoDB with express and nodemon. I will create all correct HTTP responses. I will provide postman collection as well to test the APIs. I am an Angular/Ionic/Nodejs/Spring/JAVA D More

£30 GBP in 1 day
(26 Reviews)
4.5
Nina070914

Hello, I hope you're doing well. After thoroughly reading the project description, I'm positive I can implement the API. In a nutshell, I'm a seasoned MERN ( MongoDB, [login to view URL], React, Node.js ) stack developer with More

£15 GBP in 2 days
(5 Reviews)
2.5
Dennisthecoder

Hello Dear Client, after thoroughly reading your PROJECT DESCRIPTION i have clearly understood it and i would like to work with you. I am a skilled and experienced in the named SKILLS. I consider your project DOABLE as More

£15 GBP in 7 days
(0 Reviews)
0.0
ayesharifatmed

Hello There! This is Ayesha Siddiqua. Nice to meet with you. I am an M.B.B.S doctor. I have completed my graduation from North Bengal Medical College under Rajshahi University. A versatile and professional Web & Mobil More

£15 GBP in 2 days
(0 Reviews)
0.0
j7siddiqui

Hello ,I'm NodeJS developer & hv 6 yr exp, I feel very much interested to work with you. I have read the things that you want. I can assure you that I will do my best to do your job. Regards

£15 GBP in 7 days
(0 Reviews)
0.0
technoprimex

hello! i am expert and professional full stack developer from jaipur (rajasthan) you can see my portfolio my skills is core, php, laravel, codeignitor, wordpress, flutter, react, also well versed with htlm, js, css, More

£20 GBP in 7 days
(0 Reviews)
0.8