Skip to content

cyhsutw-courses/service-security_credit-card-api-service

Repository files navigation

Credit Card API

Run Tests

RACK_ENV=test rake db:migrate && ruby spec/credit_card_api_spec.rb

Usage

The base URL of the API is https://credit-card-api.herokuapp.com.

Use the following route to access the credit card validation function:

Request Path

/api/v1/credit_card/validate

Parameters

Name Value
card_number Your credit card number

Response

Status Code Body
200 JSON with card number and validation result
400 empty

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •