Build me an API
£10-20 GBP
Maksettu toimituksen yhteydessä
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)
Projektin tunnus: #33991486
Tietoa projektista
Myönnetty käyttäjälle:
❤️️❤️️❤️️ 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 Lisää
7 freelanceria on tarjonnut keskimäärin £29 tähän työhön
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 Lisää
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 Lisää
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 Lisää
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, Lisää