Skip to content

Commit 6691fc2

Browse files
author
Spencer Smolen
committed
updated README to match API spec
1 parent 9f17b53 commit 6691fc2

12 files changed

+30
-11
lines changed

README.md

+30-11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# GitOps Console
2+
13
## Overview
24

35
Secrets and other configuration for the `console-api` microserice should be located at:
@@ -14,17 +16,34 @@ Afterwards, edit `./configs/app.env` to contain:
1416
* credentials to a valid Postgres 14 database
1517
* SMTP credentials to a Mailtrap Inbox
1618

17-
## Project Specifications
18-
19-
RESOURCE METHOD ROUTE DESCRIPTION
20-
-----------------------------------------------------------------------------
21-
users GET /api/users/me Retrieve profile data
22-
auth POST /api/auth/register Create a new user
23-
auth POST /api/auth/login Sign in the user
24-
auth GET /api/auth/refresh Refresh the access token
25-
auth GET /api/auth/logout Logout the user
26-
password POST /api/auth/forgotpassword To request a reset link
27-
password PATCH /api/auth/resetpassword/:resetToken To reset the password
19+
## API Overview
20+
21+
METHOD METHOD ROUTE DESCRIPTION
22+
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
23+
24+
GET /api/healthchecker main.main.func1
25+
POST /api/auth/register github.com/kriipke/console-api/pkg/controllers.(*AuthController).SignUpUser-fm Create a new user
26+
POST /api/auth/login github.com/kriipke/console-api/pkg/controllers.(*AuthController).SignInUser-fm Sign in the user
27+
GET /api/auth/refresh github.com/kriipke/console-api/pkg/controllers.(*AuthController).RefreshAccessToken-fm Refresh the access token
28+
GET /api/auth/logout github.com/kriipke/console-api/pkg/controllers.(*AuthController).LogoutUser-fm Logout user
29+
POST /api/auth/forgotpassword github.com/kriipke/console-api/pkg/controllers.(*AuthController).ForgotPassword-fm To request a rest link
30+
PATCH /api/auth/resetpassword/:resetToken github.com/kriipke/console-api/pkg/controllers.(*AuthController).ResetPassword-fm To reset the password
31+
GET /api/auth/verifyemail/:verificationCode github.com/kriipke/console-api/pkg/controllers.(*AuthController).VerifyEmail-fm Verify Email address w/ verification code
32+
33+
GET /api/users/me github.com/kriipke/console-api/pkg/controllers.(*UserController).GetMe-fm Return whoami info
34+
35+
POST /api/posts/ github.com/kriipke/console-api/pkg/controllers.(*PostController).CreatePost-fm Create new post
36+
GET /api/posts/ github.com/kriipke/console-api/pkg/controllers.(*PostController).FindPosts-fm Get posts
37+
PUT /api/posts/:postId github.com/kriipke/console-api/pkg/controllers.(*PostController).UpdatePost-fm Updtae post
38+
GET /api/posts/:postId github.com/kriipke/console-api/pkg/controllers.(*PostController).FindPostById-fm Get post by ID
39+
DELETE /api/posts/:postId github.com/kriipke/console-api/pkg/controllers.(*PostController).DeletePost-fm Delete Post
40+
41+
POST /api/clusters/ github.com/kriipke/console-api/pkg/controllers.(*ClusterController).CreateCluster-fm Add new cluster to DB
42+
GET /api/clusters/ github.com/kriipke/console-api/pkg/controllers.(*ClusterController).FindClusters-fm Fetch clusters
43+
PUT /api/clusters/:clusterId github.com/kriipke/console-api/pkg/controllers.(*ClusterController).UpdateCluster-fm Update cluster info
44+
GET /api/clusters/:clusterId github.com/kriipke/console-api/pkg/controllers.(*ClusterController).FindClusterById-fm Get cluster info by ID
45+
DELETE /api/clusters/:clusterId github.com/kriipke/console-api/pkg/controllers.(*ClusterController).DeleteCluster-fm Delete Cluster
46+
2847

2948
* Project Structure
3049
- https://github.com/golang-standards/project-layout
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)