Code Monkey home page Code Monkey logo

companyapi's Introduction

RESTful API Comprehensive Exercise

Business Requirement

  • AC1: As a user, I can add a company if its name no same to any existing company
  • AC2: As a user, I can obtain all company list
  • AC3: As a user, I can obtain an existing company
  • AC4: As a user, I can obtain X(page size) companies from index of Y(page index start from 1)
  • AC5: As a user, I can update basic information of an existing company
  • AC6: As a user, I can add an employee to a specific company
  • AC7: As a user, I can obtain list of all employee under a specific company
  • AC8: As a user, I can update basic information of a specific employee under a specific company
  • AC9: As a user, I can delete a specific employee under a specific company.
  • AC10: As a user, I can delete a specific company, and all employees belong to this company should also be deleted
Company contains the following information:
* `companyID`: The *company id* is a non-empty `String` representing the unique ID for a company.
* `name`: The name of the company.

Employee contains the following information:
* `employeeID`: The *employee id* is a non-empty `String` representing the unique ID for an employee.
* `name`: The name of the employee.
* `salary`: The salary of the employee.

Practice Requirement

  • Fork this repository
  • Design above requirement with RESTful API (Resource and corresponding Http Verb)
  • Implement the api test
  • Implement api
  • write all api design in api.txt

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.