Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor spec with official API schema #27

Merged
merged 6 commits into from
Jan 4, 2018
Merged

Conversation

sue445
Copy link
Collaborator

@sue445 sue445 commented Jan 4, 2018

ChatWork API provides API schema written by RAML
https://github.com/chatwork/api/blob/master/RAML/api-ja.raml

So I used response example in RAML as test response

e.g. https://github.com/chatwork/api/blob/21970e7f86f0cc0f7179f1f24b6529013fca7dab/RAML/api-ja.raml#L827-L839

              example: |
                [
                  {
                    "account_id": 123,
                    "role": "member",
                    "name": "John Smith",
                    "chatwork_id": "tarochatworkid",
                    "organization_id": 101,
                    "organization_name": "Hello Company",
                    "department": "Marketing",
                    "avatar_image_url": "https://example.com/abc.png"
                  }
                ]

@sue445 sue445 merged commit b421c66 into asonas:master Jan 4, 2018
@sue445 sue445 deleted the add_spec branch January 4, 2018 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant