Build me an API
Budget £10-20 GBP
- Freelancer
- Jobs
- JavaScript
- 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)
Awarded to:
❤️️❤️️❤️️ 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
8 freelancers are bidding on average £28 for this job
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
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
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
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
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
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