Code Monkey home page Code Monkey logo

goscim's Introduction

GoSCIM

SCIM 2.0 spec implementation in Go. Still very much work in progress

Implementation summary so far

  • /Users - GET, POST, PUT, DELETE
  • /Groups - GET, POST, PUT, DELETE

How do I run this?

  1. This use MongoDB as the persistent store. Install MongoDB and run it with the default port 127.0.0.1:27017. It'll use a db called "users" to store user info
  2. Set $GOPATh and execute following
    • $ go get bitbucket.org/chintana/goscim
    • $ go install bitbucket.org/chintana/goscim
    • $ goscim

API calls

Users

  • Create user

curl -X POST --data @create-user.json http://localhost:8080/Users

  • Retrieve user. Use userId from previous create step

curl http://localhost:8080/Users/52ae1f8c-ff8b-dd32-ab40-2e8d6f5a06ed

  • Update user. User an existing userId

curl -X PUT --data update-user.json http://localhost:8080/Users/52ae1f8c-ff8b-dd32-ab40-2e8d6f5a06ed

  • Delete user

curl -X DELETE http://localhost:8080/Users/52ae1f8c-ff8b-dd32-ab40-2e8d6f5a06ed

Groups

  • Create group

  • Retrieve group

  • Update group

  • Delete group

TODO

  • Make functionality spec complete
  • Make hard coded entries into a config file
  • Generate/document using Swagger

goscim's People

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.