Code Monkey home page Code Monkey logo

memento-mori's Introduction

Memento-Mori

Web API sederhana untuk CRUD data desa. dibuat dengan Laravel

Getting Started

Clone

git clone https://github.com/ahmaruff/memento-mori

Install dependencies

composer install

Copy .env.example

cp .env.example .env

Set .env (database,etc)

Generate app key

php artisan key:generate

Run migration

php artisan migrate

Run seeder

php artisan laravolt:indonesia:seed

Run server

php artisan serve

API Docs

Method Path Params Body Desc
GET /api/desa ?page={page_number} n/a Return all data desa
GET /api/desa/{id} n/a n/a Return single data desa
POST /api/desa n/a code, district_code, name, lat, long, pos Insert new data desa
PUT /api/desa/{id} n/a code, district_code, name, lat, long, pos Update data desa
DELETE /api/desa/{id} n/a n/a Delete single data desa

Response Template

All responses should be in JSON format. following JSend Standard. The HTTP code will be 400 (Bad Request) for all errors unless stated otherwise.

{
    "status" : "success|fail|error",
    "code" : "HTTP_STATUS_CODE",
    "message" : "custom message",
    "data" : {
        "data" : "data goes here"
    }
}

Postman Collection

Run In Postman

Author

Ahmad Ma'ruf © 2024

memento-mori's People

Contributors

ahmaruff avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.