Skip to content

Instantly share code, notes, and snippets.

@sugimomoto
Last active December 9, 2019 11:45
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 sugimomoto/d4b9dbee5955767166ef2d55adbb6212 to your computer and use it in GitHub Desktop.
Save sugimomoto/d4b9dbee5955767166ef2d55adbb6212 to your computer and use it in GitHub Desktop.
kintone customer API
#%RAML 1.0
title: Sample Customer API
version: v1.0
baseUri: http://samplecustomer.us-w1.cloudhub.io/api
securitySchemes:
basic:
description: |
This API supports Basic Authentication.
type: Basic Authentication
securedBy: [basic]
types:
customer:
properties:
customerId: integer
companyName: string
customerFullName: string
address: string
email: string
/customers:
/{customerId}:
uriParameters:
customerId: string
get:
responses:
200:
body:
application/json:
type: customer
example: |
{
"customerId" : 1,
"companyName" : "HogehogeCompany",
"customerFullName" : "Kazuya Sugimoto",
"address" : "XXX-XXXX",
"email" : "hogehoge@hoge.com"
}
404:
body:
application/json:
properties:
message: string
example: |
{
"message" : "Customer not found"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment