You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
note: you need to execute this using rest-client postman.
Acceptance Criteria
When querying v1/organizations (using GET method) from rest client (or browser) it should return all the organization as an array in JSON format but the deleted organization.
Test
Create a test (inside the cypress folder) and make sure the endpoint returns the expected response as above. Also, check if the record is deleted by querying organization/getall endpoint
The text was updated successfully, but these errors were encountered:
User Story
We need an endpoint
v1/organizations/:id
which deletes an existing organization from the organization array.We have an organizations array in server.js file
unitednepali/server/server.js
Line 5 in 50c12ac
If you have any questions about this issue please slack in (#proj-unitednepali) or comment here.
https://nepalcodes.slack.com/archives/CT5S2H74G
endpoint:
v1/organizations/:id
example:
v1/organizations/1
(here 1 = id which gets deleted)method:
DELETE
input: none
response format:
and the error format:
note: you need to execute this using rest-client postman.
Acceptance Criteria
When querying
v1/organizations
(using GET method) from rest client (or browser) it should return all the organization as an array in JSON format but the deleted organization.Test
Create a test (inside the cypress folder) and make sure the endpoint returns the expected response as above. Also, check if the record is deleted by querying
organization/getall
endpointThe text was updated successfully, but these errors were encountered: