radekska / customer-manager Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
There will be three models on which the API will be based.
Both purchase
and repair
models have a one-to-many relationship with a customer
.
Endpoints:
/api/customers
/api/customers/<customer_id>
/api/customers/<customer_id>/purchases
/api/customers/<customer_id>/purchases/<purchase_id>
- GET /api/customers/<customer_id>/purchases/<purchase_id>
- return purchase details
/api/customers/<customer_id>/repairs
GET /api/customers/<customer_id>/repairs
return list of repairssearch
, limit
, filter
POST /api/customers/<customer_id>/repairs
create new repair/api/customers/<customer_id>/repairs/<repair_id>
GET /api/customers/<customer_id>/repair/<repair_id>
- return repair detailsPUT /api/customers/<customer_id>/repair/<repair_id>
- edit repair detailsDELETE /api/customers/<customer_id>/repair/<repair_id>
- delete repair details2023/06/18 07:02:45 /home/appuser/app/repositories/customers.go:26 duplicated key not allowed
[8.628ms] [rows:0] INSERT INTO `customers` (`id`,`first_name`,`last_name`,`telephone_number`,`created_at`,`updated_at`) VALUES ('0acac6a1-1db6-46d6-85c5-f3d2a22a5203','Ra
dosław','Skałbania','509648347','2023-06-18 07:02:45.017','2023-06-18 07:02:45.017')
07:02:44 | 500 | 9ms | 172.18.0.2 | POST | /api/customers | duplicated key not allowed
Retrieve details of a customer
use fly commands during merging to master (fly deploy etc.)
Like did it here
customer-manager/server/handlers.go
Line 439 in 7ccc349
Endpoint: GET /api/customers
Test all possible inputs like:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.