Skip to content

jfritzbarnes/api_challenge

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

API Challenge

Dependencies

This project uses Maven for builds. You need Java 8 installed.

Building

$ mvn package

Running

$ java -jar target/api_interview-0.1.0.jar

API

GET /dogs?clientID=xyz

returns

[
  'breed': ...
  'dogs': [
    {'id': ...   string
    'breed': ... string
    'votes": ... number
    'haveVoted': [true/false]
    'url': ...}, string
  ]
]

GET /dogs/:breed?clientID=xyz

returns

[
  {'id': ...
  'breed': ...
  'votes": ...
  'haveVoted': ...
  'url': ...},
]

POST /dog/:id?clientID=xyz

body: {action: 'up'}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%