This is the repository for the RESTful API created for use with the Trees of Seattle project. The server is built on Node.js/Express, with Knex.js middleware connecting to a PostgreSQL database. The server is currently deployed via Heroku.
https://radiant-harbor-65607.herokuapp.com/
Method | Request Body | Sample Successful Response |
GET |
n/a |
[{
id: [number],
species_common: [string],
species_sci: [string],
is_native: [boolean],
address: [string],
height: [number || null],
circ: [number || null],
age: [number],
author: [string],
img_url: [string || null],
neighborhood: [string || null],
lat: [number],
long: [number],
},
...]
|
Method | Request Body | Sample Successful Response |
POST |
{
speciesCommon: [string],
speciesSci: [string],
isNative: [boolean],
address: [string],
height: [number || null],
circ: [number || null],
age: [number],
author: [string],
imageURL: [string || null],
neighborhood: [string || null],
lat: [number],
long: [number],
}
|
{
id: [number],
species_common: [string],
species_sci: [string],
is_native: [boolean],
address: [string],
height: [number || null],
circ: [number || null],
age: [number],
author: [string],
img_url: [string || null],
neighborhood: [string || null],
lat: [number],
long: [number],
}
|