Skip to content

elfordero/swapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SWAPI for Grow Test

Local Development Setup

  1. npm install
  2. npm run start
  3. Navigate to http://localhost:3000

Endpoints:

  • '/character/:name' - Returns an EJS view with data about the given character.

  • '/characters' - Returns raw JSON of 50 characters. This endpoint takes a query parameter in the URL called 'sort', sort parameters are: *name *mass *height

    *Ex: '/characters?sort=height'

  • '/planetresidents' - Returns raw JSON in the form {planetName1: [characterName1, characterName2], planetName2: [characterName3]}.

About

Grow test for Swapi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published