Skip to content

thoughtworks-jumpstart/companies-review-kata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Companies Review

This is an exercise to create a server and replace hardcoded data with data from ther server. To run this frontend: npm run start.

  1. User will have to login before adding a review.
  2. Companies data will need to be manually instead
  3. id can be of any format

API to create

Post /user/login body: { username: "john smith", password: "not-a-secret" }

Get /user { "id":"754aece9-64bf-42ab-b91c-bb65e2db3a37", "firstName":"Humberto", "lastName":"Bruen", "email":"Timothy_VonRueden62@hotmail.com" }

Get /companies [ { "id":"e5cc2c0a-93b5-4014-8910-6ed9f3056456", "companyName":"Brakus, Aufderhar and Gutkowski", "companySuffix":"and Sons", "numberOfEmployees":60497, "description":"Voluptas reiciendis quasi expedita ex qui sit. Qui enim facilis adipisci qui." }, ... ]

Get /companies/:id { "id":"e5cc2c0a-93b5-4014-8910-6ed9f3056456", "companyName":"Brakus, Aufderhar and Gutkowski", "companySuffix":"and Sons", "numberOfEmployees":60497, "description":"Voluptas reiciendis quasi expedita ex qui sit. Qui enim facilis adipisci qui.", "reviews":[ { "id":"7da4d967-715b-4dc1-a74b-82a7992704f3", "userId":"f6e016e6-e254-4375-bf82-797e6c00e3eb", "userName":"Brennan Fisher", "rating":0, "title":"eligendi adipisci", "review":"Consequatur esse beatae voluptate voluptatibus expedita aperiam perspiciatis cumque voluptatem. Cum quasi dolor ut dignissimos illum magni eos. Et aspernatur illum commodi." }, { "id":"fa07ef47-5849-4642-8af0-640e4887b1e6", "userId":"13d0782f-2793-4c83-8279-93c9a03b3ac3", "userName":"Annalise Nicolas", "rating":4, "title":"iusto consequatur", "review":"Facere dicta delectus impedit sunt sed officia omnis. Officiis vel optio corrupti iure. Atque iusto nemo. Ut voluptas quaerat omnis quis impedit maiores nihil ipsam. Quod ea sed voluptates. Dolorem officia esse enim." }, ... ] }

Post /companies/:id/reviews body: { "rating":4, "title":"eligendi adipisci", "review":"Et voluptatem voluptas quisquam quos officia assumenda. Mollitia delectus vitae quia molestias nulla ut hic praesentium. Sed et assumenda et iusto velit laborum sunt non." }

About

changing locally generated data to connect to a server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published