Skip to content

Instantly share code, notes, and snippets.

@takihito
Last active August 29, 2015 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takihito/706fc080f3573e4526d1 to your computer and use it in GitHub Desktop.
Save takihito/706fc080f3573e4526d1 to your computer and use it in GitHub Desktop.

FORMAT: 1A HOST: http://example

Nopaste

タイトルと本文を投稿します

POST /api/nopaste

  • Request

    • Header

      Host: example

    • Parameters

      • title (required, string) ... タイトル
      • body (required, string) ... 本文
  • Response 201 (text/html)

    • Header

        X-Framework: Ark
      
    • Body

        {
            "result": {
                "ok": 1
            }
        }
      

GET /api/nopaste/{id}

投稿した記事を閲覧します

  • Request

    • Header

      Host: example

    • Parameters

      • id (required, number) ... ID
  • Response 200 (application/json)

    • Header

        X-Framework: Ark
      
    • Body

        {
            "result": {
                "title": "Hello Nopaste",
                "body": "Text"
            }
        }
      

DELETE /api/nopaste/{id}

投稿した記事を削除します

  • Request

    • Header

      Host: example

  • Response 200 (application/json)

    • Header

        X-Framework: Ark
      
    • Body

        {
            "result": {
                "ok": 1
            }
        }
      
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment