When I search for BDD and Rest API automation. I get lots of examples where some user scripts a human-readable user story which shows how to use his API. This user calls it BDD.
But BDD based not only on instrument to write BDD automation.
BDD is a process which connects together analytics, customers and programmers together.
From my point of view the key of BDD is a user story.
When I write this:
@Positive @Get @User Scenario: Show twitter user Given I access the resource url "/1/users/show.json?screen_name=jasonh_n_austin&include_entities=true" When I retrieve the results Then the status code should be 200 And it should have the field "name" containing the value "Jason Harmon" And it should have the field "id" containing the value "57005215"
I dont see here a User. I see a couple of http requests and checks.
So the question is: is it really okay to use bdd tools to automate testing of Rest API or this is usless and better to script your tests on plain code?