API Blueprint Example

Imported Google Group message. Original thread at: Redirecting to Google Groups Import Date: 2016-01-19 21:26:21 +0000.
Sender:Paul Amor.
Date:Tuesday, 6 October 2015 13:26:53 UTC+1.

Hi,

I am sure that I am doing something wrong so please correct me or at least point me in the right direction. I am using the docker images from the quick start guide.

What I am doing is:

  1. Download the example API Blueprint file from https://raw.githubusercontent.com/danielgtaylor/aglio/master/example.apib
  2. Convert it into Json using drafter blueprint_example.md -f json -o blueprint_example.json
  3. Paste the resulting JSON into a new Blueprint API defination in Tyk without changing any of the other options

What I am getting is an error message on the screen saying that the JSON is invalid. How do I find more detailed information on what the error is or better yet fix it.

Thanks

Paul

Imported Google Group message.
Sender:Martin Buhr.
Date:Tuesday, 6 October 2015 14:37:36 UTC+1.

Hi Paul,

Could you share the JSON with me?

Many thanks,
Martin

  • show quoted text -

  • show quoted text -


You received this message because you are subscribed to the Google Groups “Tyk Community Support” group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web, visit https://groups.google.com/d/msgid/tyk-community-support/dda75944-fdfd-4bc2-8009-430b0ba160df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Imported Google Group message.
Sender:Paul Amor.
Date:Tuesday, 6 October 2015 15:00:55 UTC+1.

Please find attached.

Regards

Paul

  • show quoted text -

Imported Google Group message.
Sender:Martin Buhr.
Date:Tuesday, 6 October 2015 17:38:40 UTC+1.

Hi Paul,

The formatting here looks wrong - I’m not sure what kind of API Blueprint JSON output this is, but it’s not the same AST as that provided by their own tools - take a look at the JSON output from the Hello World example here:

https://apiblueprint.org/

If you are using Drafter, I think you need to specify the AST like this:

drafter --type=ast --format=json blueprint.apib

See more detail here: drafter/parse.feature at master · apiaryio/drafter · GitHub

Cheers,
Martin

  • show quoted text -