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

Rest API for tanks #5

Closed
StefanSchubert opened this issue Jun 28, 2015 · 0 comments · Fixed by #29
Closed

Rest API for tanks #5

StefanSchubert opened this issue Jun 28, 2015 · 0 comments · Fixed by #29
Assignees

Comments

@StefanSchubert
Copy link
Owner

(pre condition - valid token in Request header)

@path("/tank/list")
@get
@produces("application/json")
JsonObject listTanks()
result: OK
tanks : [
{
"id":"1",
"name":"MyMiniReef"
},
{
"id":"2",
"name":"MyBigReef"
}
]

 result: ERROR
 message: Error description

@path("/tank/create")
@post
@consumes("application/json")
@produces("application/json")
JsonObject createTank(JsonObject psJson) # tank: name

  result: OK
  tankId: 2

  result: ERROR
  message: Error description
@StefanSchubert StefanSchubert self-assigned this Dec 21, 2016
@StefanSchubert StefanSchubert added this to the Softlaunch with Measurement tracking milestone Jan 1, 2017
StefanSchubert added a commit that referenced this issue Jun 16, 2017
fixes #8 swagger config. API-DOC is now available
@StefanSchubert StefanSchubert mentioned this issue Jan 14, 2018
StefanSchubert added a commit that referenced this issue Jan 14, 2018
fixes #5, #28 

* Fixed WebSecurity Config to handle TankController correctly (auth realm required)

* AuthorizationFilter works as expected. Accessing Principal in Controller also works.

* Adding rest test / unauthorized case still buggy

* implemented create tank

* implemented update tank

* implemented get tank

* implemented remove tank and fixed rest api according to verbs
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 a pull request may close this issue.

1 participant