1, edit the /etc/hosts file
127.0.0.1 api.localhost
2, routes.rb
namespace :api, path: '', constrains: { subdomain: 'api' } do1, edit the /etc/hosts file
127.0.0.1 api.localhost
2, routes.rb
namespace :api, path: '', constrains: { subdomain: 'api' } do1, users
GET api.sibi.com/v1/users
http://wiki.servicenow.com/index.php?title=Table_API_Curl_Examples
1, create
curl \
--header "Content-Type:application/json" \
--header "Accept: application/json" \
--request POST \
--data '{"email":"linyingkui@gmail.com"}' \cataluv/
├── app/
│ ├── assets/
| | ├── images/
| | ├── fonts/
| | ├── audios/
| | └── videos/
│ ├── scenarios
| | ├── auth/
Question everything generally thought to be obvious.
Low noise for focus, rich details for curiosity.
Don't try to be original, just try to be good.
sudo gem install cocoapods
pod setup
Create podfile file
pod install
1, add a new project from add new
2, add podfile on the root folder
3, pod install
The openssl command is something like:
openssl req -new -newkey rsa:2048 -nodes -out www_example_com.csr -keyout www_example_com.key -subj "/C=us/ST=Pennsylvania/L=Philadelphia/O=SSL Inc./CN=www.example.com"Based on https://medium.com/@aommiez/afnetwork-integrate-swfit-80514b545b40
Add AFNetworking to Project
https://github.com/AFNetworking/AFNetworking
Add Code in Project-Bridging-Header.h
1, container relationships
Screen has window, window has viewController (root), vC has view, view has subview
2,
// Both UIView and UIViewController is a UIResponder
touchesBegan:withEvent:3,