-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "TRELLO-2881 document endpoints (and remove some unused ones)"
This reverts commit 1713b66.
- Loading branch information
1 parent
7af27eb
commit c64a423
Showing
10 changed files
with
353 additions
and
240 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package controllers | ||
|
||
import authentication.Authenticator | ||
import models.User | ||
import play.api.mvc.ControllerComponents | ||
|
||
import scala.concurrent.ExecutionContext | ||
import scala.concurrent.Future | ||
|
||
class StaticController(authenticator: Authenticator[User], controllerComponents: ControllerComponents)(implicit | ||
val ec: ExecutionContext | ||
) extends BaseController(authenticator, controllerComponents) { | ||
|
||
def api = UserAwareAction.async(parse.empty) { _ => | ||
Future.successful(Ok(views.html.api())) | ||
} | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
@() | ||
|
||
<!DOCTYPE html> | ||
<html lang="fr"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Description de l'API SignalConso</title> | ||
</head> | ||
<body> | ||
<table border="1" cellpadding="10" width="100%"> | ||
<tr> | ||
<th class="test">Chemin</th> | ||
<th>Méthode</th> | ||
<th>Description</th> | ||
</tr> | ||
<tr> | ||
<td>/api/authenticate</td> | ||
<td>POST</td> | ||
<td>Authentification de l'utilisateur</td> | ||
</tr> | ||
<tr> | ||
<td>/api/reports/:uuid</td> | ||
<td>GET</td> | ||
<td>Récupération d'un signalement par son identifiant</td> | ||
</tr> | ||
<tr> | ||
<td>/api/reports</td> | ||
<td>GET</td> | ||
<td>Récupération des signalements par page</td> | ||
</tr> | ||
<tr> | ||
<td>/api/reports</td> | ||
<td>POST</td> | ||
<td>Création d'un signalement</td> | ||
</tr> | ||
<tr> | ||
<td>/api/events/:uuidReport</td> | ||
<td>GET</td> | ||
<td>Récupération des évènements d'un signalement</td> | ||
</tr> | ||
|
||
<tr> | ||
<td>/api/reports/stats</td> | ||
<td>GET</td> | ||
<td>Récupération des statistiques sur les signalements</td> | ||
</tr> | ||
<tr> | ||
<td>/api/companies</td> | ||
<td>GET</td> | ||
<td>Recherche textuelle d'entreprises</td> | ||
</tr> | ||
<tr> | ||
<td>/api/companies/suggest</td> | ||
<td>GET</td> | ||
<td>Recherche textuelle de suggestions d'entreprises</td> | ||
</tr> | ||
</table> | ||
</body> | ||
</html> |
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.