Build me an API

Suoritettu Julkaistu 1 vuosi sitten Maksettu toimituksen yhteydessä
Suoritettu 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)

JavaScript Node.js Express JS API Web Development

Projektin tunnus: #33991486

Tietoa projektista

7 ehdotusta Etäprojekti Aktiivinen 1 vuosi sitten

Myönnetty käyttäjälle:

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 Lisää

£10 GBP 7 päivässä
(2 Arvostelua)
2.1

7 freelanceria on tarjonnut keskimäärin £29 tähän työhön

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 Lisää

£100 GBP 1 päivässä
(66 arvostelua)
5.8
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 Lisää

£30 GBP 1 päivässä
(29 arvostelua)
4.6
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 Lisää

£15 GBP 2 päivässä
(17 arvostelua)
4.3
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 Lisää

£15 GBP 7 päivässä
(0 arvostelua)
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, Lisää

£20 GBP 7 päivässä
(0 arvostelua)
0.8