init project

This commit is contained in:
2024-09-17 08:40:20 +07:00
parent 0612390e55
commit 73ff9c10bc
11 changed files with 824 additions and 0 deletions

35
docs/swagger.yaml Normal file
View File

@@ -0,0 +1,35 @@
definitions:
models.User:
properties:
agama:
type: string
alamat:
type: string
id:
type: string
jenis_kelamin:
type: string
nama:
type: string
umur:
type: integer
type: object
host: localhost:8080
info:
contact: {}
description: Rest API CRUD User
title: Crud User
version: "1"
paths:
/api/v1/user:
get:
description: returs list of all users from the database
responses:
"200":
description: OK
schema:
$ref: '#/definitions/models.User'
summary: return list of all
tags:
- Users
swagger: "2.0"