Skip to content

API Documentation

Anugrah edited this page Apr 7, 2022 · 10 revisions

API Documentation

this section for explain API Go Postgres

  1. User
    • Register User
    • Login User
    • Update User
    • Delete User
  2. Photo
    • Upload Photo
    • Get Photo
    • Update Photo
    • Delete Photo
  3. Comment
    • Insert Comment
    • Get Comment
    • Update Comment
    • Delete Comment
  4. Social Media
    • Insert Social Media
    • Get Social Media
    • Update Social Media
    • Delete Social Media

User - User Register

This endpoint for register user, first hit API

Endpoint Login User

Command Method Routes Description
User Register POST /api/users/register this endpoint for user register

Authorization

this endpoint no auth

Request

{
	"email": "string",
	"username": "string",
	"age": "integer",
	"password": "string"
}

Response

{
	"email": "[email protected]",
	"username": "user",
	"age": 8,
	"password": "password"
}

User - User Login

Clone this wiki locally