Giter Site home page Giter Site logo

codestack-api's Introduction

Codestack-Api

GitHub version TeamCity CodeBetter license

A REST-ful API for CodeStack application with Go (golang)

alternativetext

Quick Start

Get dependencies

$ cd codestack-api/

$ go get

Run

$ go run main.go

Browse

http://localhost:8000

Structure

├── data
├── database              // Database
│   └──db.go
├── endpoints             // Endpoints
│   ├── handlers          // API core handlers
│   │   ├── course.go
│   │   ├── favorite.go
│   │   ├── survey.go
│   │   └── user.go
│   ├── auth.go
│   └── middleware.go
├── errors                // Errors
│   └──error.go
├── model                 // Models for our application
│   ├── course.go
│   ├── favorite.go
│   ├── survey.go
│   └── user.go
├── repository            // Repository
│   ├── user.go
├── router                // Routes
│   ├── router.go
├── server                // Server
│   ├── server.go
└── main.go

API

/people

  • GET : Get all users
  • POST : Create a new user

/people/{id}

  • GET : Get user
  • PUT PATCH : Update user
  • DELETE : Delete user

/people/{id}/update

  • PUT PATCH : Update user password

/people/{id}/reset

  • POST : Reset user password

/favorite

  • GET : Get favorite
  • POST : Create favorite

/favorite{id}

  • DELETE : Detele favorite
/courses
  • GET : Get all courses
  • POST : Create a new course

/courses/{id}

  • GET : Get course
  • PUT PATCH : Update course
  • DELETE : Delete course

/courses/{id}/status

  • PUT PATCH : Update course status

/courses/{id}/open

  • GET : Open course

/survey

  • GET : Get surveys
  • POST : Create a new survey

codestack-api's People

Contributors

whosv avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.