Skip to content

Instantly share code, notes, and snippets.

View johadi's full-sized avatar

Jimoh Hadi johadi

View GitHub Profile
@johadi
johadi / waste-saver-post-stream-configuration-orders-v2.md
Created October 21, 2022 10:12
WasteSaver Audit: Create Stream Configuration Orders endpoint

WasteSaver Audit: Create - StreamConfiguration order

OLD ENDPOINT: POST /api/store/locations/:org_location_id/streams/org_stream_id/orders

NEW ENDPOINT: POST /api/store/locations/:org_location_id/waste-stream-configurations/:stream_configuration_id/orders

Request payload proposal:

{
 "quantity": 2,
@johadi
johadi / waste-saver-get-orders-v2.md
Last active October 21, 2022 13:41
WasteSaver Audit: Orders GET endpoint

WasteSaver Audit: Orders endpoint

OLD ENDPOINT: GET /api/store/locations/:org_location_id/orders

NEW ENDPOINT (remains the same): GET /api/store/locations/:org_location_id/orders Payload proposal:

{
  "items": [
    {
@johadi
johadi / double.java
Created May 30, 2018 22:17
Calculate some arithmetic
class Double {
public double getDouble(value) {
return 2*value;
}
public static voind main(args[] string) {
System.out.println(getDouble(8)); // returns 16
}
}