-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove global settings, and add api type specific settings to info an…
…d account_scaffold (previously goldapps)
- Loading branch information
Showing
45 changed files
with
712 additions
and
619 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
...it/chalmers/gamma/adapter/primary/api/accountscaffold/AccountScaffoldV1ApiController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package it.chalmers.gamma.adapter.primary.api.accountscaffold; | ||
|
||
import it.chalmers.gamma.app.accountscaffold.AccountScaffoldFacade; | ||
import java.util.List; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
/** | ||
* Used by, for example, <a href="https://github.com/cthit/goldapps">cthit/goldapps</a> to sync | ||
* Google accounts for the student division. | ||
*/ | ||
@RestController | ||
@RequestMapping(AccountScaffoldV1ApiController.URI) | ||
public class AccountScaffoldV1ApiController { | ||
|
||
public static final String URI = "/api/account-scaffold/v1"; | ||
|
||
private final AccountScaffoldFacade accountScaffoldFacade; | ||
|
||
public AccountScaffoldV1ApiController(AccountScaffoldFacade accountScaffoldFacade) { | ||
this.accountScaffoldFacade = accountScaffoldFacade; | ||
} | ||
|
||
@GetMapping("/supergroups") | ||
public List<AccountScaffoldFacade.AccountScaffoldSuperGroupDTO> getSuperGroups() { | ||
return this.accountScaffoldFacade.getActiveSuperGroups(); | ||
} | ||
|
||
@GetMapping("/users") | ||
public List<AccountScaffoldFacade.AccountScaffoldUserDTO> getUsers() { | ||
return this.accountScaffoldFacade.getActiveUsers(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 0 additions & 34 deletions
34
...src/main/java/it/chalmers/gamma/adapter/primary/api/goldapps/GoldappsV1ApiController.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73 changes: 0 additions & 73 deletions
73
app/src/main/java/it/chalmers/gamma/adapter/primary/web/SettingsController.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.