jfiala / swagger-spring-demo

Demo of Swagger & Spring & Swagger Codegen
Apache License 2.0
1 stars 2 forks source link

Add additional client stubs + tests for calling the UserApi/SearchApi #5

Open jfiala opened 9 years ago

jfiala commented 9 years ago

Todos for each language

  1. Start up user-rest-service-1.0.2
  2. Generate client stubs for the language using Swagger-Codegen, Branch develop-2.0
  3. Add a simple test case calling the API
    • UserApi ==> UserApi_get_Test, UserApi_post_Test
    • UserResponseEntityApi ==> UserResponseEntityApi_Test
    • SearchApi ==> SearchApiTest
  4. Add Assertions for alle the attributes at the UserApi (see GetUserTest.java: https://github.com/jfiala/swagger-spring-demo/blob/master/user-rest-service-1.0.2-client-java-codegen-develop-2.0/src/test/java/at/fwd/swagger/spring/demo/user/GetUserTest.java)
  5. Send a PR for a new subproject: user-rest-service-1.0.2-client--codegen-develop-2.0
  6. Redo 1-5 using user-rest-service-2.0.0
  7. Check language as done below:

    Tested Languages

i.e. Tests for 1.0.2 + 2.0.0 with Codegen develop-2.0 are supplied in the demo project

jfiala commented 9 years ago

see generated client code stubs at: https://github.com/jfiala/swagger-spring-demo/tree/master/user-rest-service-1.0.2/generated-code