-
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.
Merge pull request #1862 from betagouv/master
MEP
- Loading branch information
Showing
11 changed files
with
362 additions
and
247 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
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.