Skip to content

Latest commit

 

History

History

robyn-postgres

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

This is example simple robyncrud with database driver postgresql.

Usage

create database connection

docker-compose up -d db

running app service

docker-compose up -d app

Create Todo

  • Method: POST
  • Endpoint: /api/v1/todo/create
  • Header:
    • Content-Type: application/json
    • Accept: application/json
  • Body :
{
    "id": "int",
    "name": "string",
    "desc": "string",
    "time": "time"
}

Update Todo

  • Method: PUT
  • Endpoint: /api/v1/todo/update/{id}
  • Header:
    • Content-Type: application/json
    • Accept: application/json
  • Body :
{
    "id": "int",
    "name": "string",
    "desc": "string",
    "time": "time"
}

Get Todo

  • Method: GET
  • Endpoint: /api/v1/todo/find
  • Header:
    • Content-Type: application/json
    • Accept: application/json
  • Response :
{
    "status_code": "int",
    "description": "string",
    "data": [
        {
            "id": "int",
            "name": "string",
            "desc": "string",
            "time": "time"
        }
    ],
}

Get Todo by ID

  • Method: GET
  • Endpoint: /api/v1/todo/find/{id}
  • Header:
    • Content-Type: application/json
    • Accept: application/json
  • Response :
{
    "status_code": "int",
    "description": "string",
    "data": 
        {
            "id": "int",
            "name": "string",
            "desc": "string",
            "time": "time"
        }
}

Delete Todo by ID

  • Method: DELETE
  • Endpoint: /api/v1/todo/delete/{id}
  • Header:
    • Content-Type: application/json
    • Accept: application/json
  • Response :
{
    "status_code": "int",
    "description": "string",
}