-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #323 from akto-api-security/develop
Develop
- Loading branch information
Showing
44 changed files
with
3,251 additions
and
952 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
37 changes: 37 additions & 0 deletions
37
apps/dashboard/src/main/java/com/akto/action/growth_tools/PublicApiAction.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,37 @@ | ||
package com.akto.action.growth_tools; | ||
|
||
import com.akto.action.UserAction; | ||
import com.akto.dao.AccountsDao; | ||
import com.akto.dto.Account; | ||
|
||
import java.util.List; | ||
|
||
public class PublicApiAction extends UserAction { | ||
|
||
private String check; | ||
private List<Account> accounts; | ||
|
||
@Override | ||
public String execute() throws Exception{ | ||
check = "abcd"; | ||
accounts = AccountsDao.instance.getAllAccounts(); | ||
//curl api/createTest | ||
return SUCCESS.toUpperCase(); | ||
} | ||
|
||
public String getCheck() { | ||
return check; | ||
} | ||
|
||
public void setCheck(String check) { | ||
this.check = check; | ||
} | ||
|
||
public List<Account> getAccounts() { | ||
return accounts; | ||
} | ||
|
||
public void setAccounts(List<Account> accounts) { | ||
this.accounts = accounts; | ||
} | ||
} |
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
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
Oops, something went wrong.