Code Monkey home page Code Monkey logo

thuctap_web_service's Introduction

Thực tập - phần Webservice Thông số cài đặt:

  • PostgreSQL

    • Server=127.0.0.1
    • Port=5432
    • Id=postgres
    • Password=123456
    • Database=svthuctap
  • Visual Studio 2015 (IIS Server)

    • Server=localhost
    • Port=29444
    • Đổi thông tin connection project: Folder Connections->ConnectionString -> Thay đổi
  • Thông tin câu lệnh:

  • GET

 http://localhost:29444/BenhNhan
+ Kết quả:
[{"mabn":"BN001","holot":"Huynh Nguyen ","ten":"Buu Giao","ngaysinh":"5/4/2018","gioitinh":1},	{"mabn":"BN002","holot":"Nguyen","ten":"Minh Nhat","ngaysinh":"4/5/2018","gioitinh":1}]
  • POST
 http://localhost:29444/BenhNhan

+Json gửi đi:

{
	"mabn" : "BN00",
	"holot" : "Huynh Nguyen",
	"ten" : "Buu Giao",
	"ngaysinh" : "04/05/2018",
	"gioitinh" : 0
}
+ Kết quả: Bệnh nhân có mã BN002 được thêm vào Database
  • PUT
 http://localhost:29444/BenhNhan

+Json gửi đi :

{
	"mabn" : "BN001",
	"holot" : "Huynh Nguyen",
	"ten" : "Buu Tuan",
	"ngaysinh" : "19/01/2018",
	"gioitinh" : 1
}
+ Kết quả: Bệnh nhân có mã BN001 đã được sửa lại thông tin dựa theo sự thay đổi của holot,ten,ngaysinh,gioitinh
+ Mã bệnh nhân không thay đổi
  • DELETE
 http://localhost:29444/BenhNhan/BN001
+ Kết quả: Bệnh nhân có mãBN001 đã được xoá khỏi Database

thuctap_web_service's People

Contributors

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