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

How to add custom nonHTTP response to Apiary #318

Closed
danilvalov opened this issue Apr 6, 2016 · 1 comment
Closed

How to add custom nonHTTP response to Apiary #318

danilvalov opened this issue Apr 6, 2016 · 1 comment

Comments

@danilvalov
Copy link

Hi.

I develop the service with Push notifications (APNS). And i need to add Push notification responses to Apiary.
How to do it?

P.S. I use MSON with data structures for generation of API examples.

@danilvalov danilvalov changed the title How to add custom nonHTTP response to apiary How to add custom nonHTTP response to Apiary Apr 6, 2016
@kylef
Copy link
Member

kylef commented Jan 10, 2019

API Blueprint can only currently describe HTTP although we do have other open issues tracking decoupling HTTP from API Blueprint.

Regarding APNS, this particular API now sits on top of HTTP/2 and thus can be described in API Blueprint. For example:

FORMAT: 1A

# Apple Push Notification Service (APNS)

## Send Notification [POST /3/device/{devicetoken}]

+ Parameters
    + devicetoken: 00fc13adff785122b4ad28809a3420982341241421348097878e577c991de8f0

+ Request (application/json)

    + Headers

            apns-id: eabeae54-14a8-11e5-b60b-1697f925ec7b
            apns-expiration: 0
            apns-priority: 10

    + Body

            { "aps" : { "alert" : "Hello" }

+ Response 200

@kylef kylef closed this as completed Jan 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants