search

Home  >  Q&A  >  body text

Waiting online for help? Laravel does the backend, but all data in the backend needs to be connected through the given API data interface.


This is my first time doing such a project, so I asked the teacher for guidance.
The data API is as follows:
1. User--》Administrator login (/api/lock/admin/user/admin/login) POST
Data request list

{  
"account": "string", 
 "password": "string"
 }
数据类型:
application/json

2. Administrator--》Create Administrator (/api/lock/admin/create) POST
Data request example

{  
"account": "string",  
"confirmPassword": "string",  
"nickName": "string", 
 "password": "string"
 }
数据类型:
application/json


战狼战狼1987 days ago1164

reply all(8)I'll reply

  • 像风一样自由

    像风一样自由2019-08-03 16:14:47

    You can just write it directly in web.php

    reply
    0
  • 战狼

    What to write directly? Please make it clear

    战狼 · 2019-08-03 16:17:35
  • ringa_lee

    ringa_lee2019-08-01 10:27:54

    There is nothing wrong with connecting this through the given API data interface

    I don’t know what your specific problem is?

    reply
    0
  • 战狼

    The specific question is, My current local login address: znspt.test/admins/login How can I successfully log in when I enter the correct account and password? Do I need to write an ajax in the login page to get the login information and address?

    战狼 · 2019-08-01 11:02:22
    战狼

    The specific question is, my current local login address is: znspt.test/admins/login. How can I successfully log in when I enter my account number and password? Do I need to write an ajax in the login page to obtain the login information and address?

    战狼 · 2019-08-01 11:03:13
    战狼

    @csrf

    战狼 · 2019-08-01 11:04:38
    战狼

    Because the login account and password are all in the API interface, I want to log in to the system functionally by using the account in the API!

    战狼 · 2019-08-01 12:02:44
    战狼

    Because the login account and password are all in the API interface, I want to log in to the system by using the account in the API!

    战狼 · 2019-08-01 12:16:59
  • Cancelreply