Skip to content

Update the code comments according to the new API in Server.scala #106

@Ayybeeshafi

Description

@Ayybeeshafi

Code comments are not up to date to current implementation of the API.
For example:

**
    * Called to stop the instance with the specified id. The associated docker container is stopped. The Id is passed
    * as a query argument named 'Id' (so the resulting call is /stop?Id=42).
    *
    * @return Server route that either maps to 202 ACCEPTED or the expected error codes.
    */
  def stop(id: Long): server.Route = {
    authenticateOAuth2[AccessToken]
("Secure Site", handler.authProvider.authenticateOAuthRequire(_, userType = UserType.Admin)) { token =>
      post {
        log.debug(s"POST /instances/$id/stop has been called")

The log is up to date /instances/$id/stop whereas comments are outdated /stop?Id=42.

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions