Skip to content

Ashutosh94g/Amingo

Repository files navigation

Amingo

Follow the following instruction:

  1. Clone the repostory into a folder
  2. Open cmd, powershell or git bash in current folder
  3. Enter the "dotnet build" and wait for around 5 min
  4. Edit AppSettings for connection string of MySQL(like user, password, server, and port)
  5. Run command "dotnet ef database update"
  6. Then enter "dotnet run" and open "https://localhost:{port}/"

EndPoints of the Api with Required methods and Json body parameters

All Endpoints except Auth Controller need a JWTBearer token

    In Header add: 
    {
      Key: Authorization
      value: Bearer + "Token from Login"
    }

Auth Controller

Post Request

{
 "username"     : "testuser",
 "password"     : "Password@1",
 "gender"       : "Male"/ "female",
 "dateOfBirth"  : "12/04/2000",
 "knownAs"      : "user",
 "city"         : "Delhi",
 "country"      : "India"
 }
 { 
   "username": "testuser",
   "Password": "Password@1"
 }

Users Controller

Get Requests

Post Requests

Patch Requests

  [{
    "op": "replace"/"copy",
    "path": "username",
    "value": "newvalue"
    },
    {
    "op": "replace"/"copy",
    "path": "password",
    "value": "newvalue"
    },
    {
    "op": "replace"/"copy",
    "path": "knownAs",
    "value": "newvalue"
    },
    {
    "op": "replace"/"copy",
    "path": "city",
    "value": "newvalue"
    },
    {
    "op": "replace"/"copy",
    "path": "country",
    "value": "newvalue"
  }]

Messages Controller

Get Requests

Post Requests

    {
      "senderId"    : 1,
      "receiverId"  : 2,
      "content"     : "Hello"
    }

Photos Controller

Get Requests

Post Requests

    {
      "File" : uploaded_file.png,
      "description": "File added"
    }

Delete Requests

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors