Imple

One of a kind software development environment that will set you free

Our Features

Glance at Imple

API Requirements

API should respond with two list of orders

  1. Orders Returned
  2. Orders Purchased┃
    PM Product Manager
GET /api/v1/user_orders V 1.2
ND Non Developer
Request (with auth)
user_id = request.query.user_id
returns string
DV Developer
Database Query
query_result = db.query('select * from ecommerce.user_orders where user_id = :user_id')
returns Array<UserOrders>
Manual Log
log('Query query_result', query_result)
Variable
response_data = { "purchased": [], "returned": [] }
returns Map<purchased: UserOrders[], returned:UserOrders[]>
Loop (query_result)
each: each_order
Condition: if
each_order.is_returned == true
Array Operation
response_data.returned.add(each_order)
Condition: else
--
Array Operation
response_data.purchased.add(each_order)
Response
response.send(response_data)
returns Map<purchased: UserOrders[], returned: UserOrders[]>

API Metrics

  1. 121
    times
    Status 401
    Auto
  2. 22
    times
    Status 422
    Auto
  3. 1424
    times
    Status 200
    Auto
  4. 635
    times
    Condition: if
    Manual
  5. 789
    times
    Condition: else
    Manual

Add metrics to any step and Imple will tell you how many times the step has been executed. Measuring product usage couldn't be easier than this.

Automated API Tests

  1. Auto Generated Expected the auth user to be present βœ“Passed
  2. Auto Generated Expected response status to be 401 if the auth user is not present βœ“Passed
  3. Auto Generated Expected the response to be an Map βœ“Passed
  4. Auto Generated Expected the response to have purchased and returned keys βœ“Passed
  5. Manual Expected the response status to be 200 ⨉Failed

Imple will auto-generate tests based on the blocks. It also allows you to do TDD if that is what you are into. You can add sophisticated comprehensive business specific tests.

API Logs

  • Request object: {"headers":{},"cookie":"...","query":{"user_id":"76554-juy7765-8766"},"body":{}}
  • Query: {"query":{"user_id":"76554-juy7765-8766"}}
  • DB Query: select * from ecommerce.user_orders where user_id = '76554-juy7765-8766';
  • ManualQuery query_result: [{"id":1,"is_returned":false},{"id":2,"is_returned":true}]
  • Condition: if
  • Condition: else
  • Response: {"returned":[{"id":2,"is_returned":true}],"purchased":[{"id":1,"is_returned":false}]}

Imple will auto-generate logs for each block. It also allows you to add custom logs if needed.

❀️ Love what you see?

Join The Waitlist