rails_engine's People
Forkers
antcicconerails_engine's Issues
Customer: favorite merchant
GET /api/v1/customers/:id/favorite_merchant returns a merchant where the customer has conducted the most successful transactions
Top items by total number sold
GET /api/v1/items/most_items?quantity=x returns the top x item instances ranked by total number sold
Record endpoint: Invoices
Relationship endpoints: Transactions
GET /api/v1/transactions/:id/invoice returns the associated invoice
Merchants ranked by # items sold
GET /api/v1/merchants/most_items?quantity=x returns the top x merchants ranked by total number of items sold
Merchant revenue
GET /api/v1/merchants/:id/revenue returns the total revenue for that merchant across all transactions
Date with most sales for item
GET /api/v1/items/:id/best_day returns the date with the most sales for the given item using the invoice date. If there are multiple days with equal number of sales, return the most recent day.
Record endpoint: Merchants
Top items by total revenue
GET /api/v1/items/most_revenue?quantity=x returns the top x items ranked by total revenue generated
Test for favorite customer
Test for favorite customer
Merchant revenue for date
GET /api/v1/merchants/:id/revenue?date=x returns the total revenue for that merchant for a specific invoice date x
Test for favorite merchant
Merchand revenue favorite customer
GET /api/v1/merchants/:id/favorite_customer returns the customer who has conducted the most total number of successful transactions.
Relationship endpoints: Customers
GET /api/v1/customers/:id/invoices returns a collection of associated invoices
GET /api/v1/customers/:id/transactions returns a collection of associated transactions
Record endpoint: Customers
Record endpoint: Transactions
test models
- Add validations
- Add tests for methods
Total revenue for date across merchants
GET /api/v1/merchants/revenue?date=x returns the total revenue for date x across all merchants
Relationship endpoints: Invoices
GET /api/v1/invoices/:id/transactions returns a collection of associated transactions
GET /api/v1/invoices/:id/invoice_items returns a collection of associated invoice items
GET /api/v1/invoices/:id/items returns a collection of associated items
GET /api/v1/invoices/:id/customer returns the associated customer
GET /api/v1/invoices/:id/merchant returns the associated merchant
Merchant customers with pending invoices
GET /api/v1/merchants/:id/customers_with_pending_invoices returns a collection of customers which have pending (unpaid) invoices
Record endpoint: Items
Relationship endpoints: Invoice Items
GET /api/v1/invoice_items/:id/invoice returns the associated invoice
GET /api/v1/invoice_items/:id/item returns the associated item
Merchants ranked by total revenue
GET /api/v1/merchants/most_revenue?quantity=x returns the top x merchants ranked by total revenue
Relationship endpoints: Merchants
GET /api/v1/merchants/:id/items returns a collection of items associated with that merchant
GET //api/v1/merchants/:id/invoices returns a collection of invoices associated with that merchant from their known orders
Record endpoint: Invoice Items
Relationship endpoints: Items
GET /api/v1/items/:id/invoice_items returns a collection of associated invoice items
GET /api/v1/items/:id/merchant returns the associated merchant
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.