Skip to content

Instantly share code, notes, and snippets.

@Almad
Created November 21, 2013 22:35
Show Gist options
  • Save Almad/7591032 to your computer and use it in GitHub Desktop.
Save Almad/7591032 to your computer and use it in GitHub Desktop.
shortcut demonstration

FORMAT: 1A

xoxo test

Notes API is a short texts saving service similar to its physical paper presence on your table.

Company group

Notes related resources of the Notes API

Notes Collection [/notes]

List all Notes [GET]

  • Response 200 (application/json)

      [{
        "id": 1, "title": "Jogging in park"
      }, {
        "id": 2, "title": "Pick-up posters from post-office"
      }]
    

Create a Note [POST]

  • Request (application/json)

      { "title": "Buy cheese and bread for breakfast." }
    
  • Response 201 (application/json)

      { "id": 3, "title": "Buy cheese and bread for breakfast." }
    

GET /notes/mine

This demonstrates shortcut for new resource without section.

  • Response 200 (application/json)

      { "id": 3, "title": "Buy cheese and bread for breakfast." }
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment