Skip to content

Instantly share code, notes, and snippets.

@davidelbe
Created December 18, 2015 09:12
Show Gist options
  • Save davidelbe/91684b258aae5c0159a9 to your computer and use it in GitHub Desktop.
Save davidelbe/91684b258aae5c0159a9 to your computer and use it in GitHub Desktop.

API - pajat

Create

POST /reports

latitude: longitude: description: tags: array with tags agent: standout-pajat-twitterbot 2.0 agent_ip: (auto) reporter_network: twitter reporter_username: davidelbe

(created automatically: created_at)

Comment

POST /reports/:id/comments

agent: "web client pajat.se" agent_ip: (auto) commenter_network: commenter_username: content: "Great, I have fixed this." old_status: (auto) new_status: 'resolved'

(ideas for upcoming features)

Vote

POST /reports/:id/votes

direction: up|down positive: true|false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment