Answers for "api response format"

0

api response format

POST http://localhost:60464/api/student?age=15 HTTP/1.1
User-Agent: Fiddler
Host: localhost:60464
Content-Type: application/json
Content-Length: 13

{
  id:1,
  name:'Steve'
}
Posted by: Guest on October-12-2020
0

api response format

{    "success": true,    "message": "Category deleted successfully",    "data": {}}
Posted by: Guest on October-12-2020
0

api response format

public class Student
{
    public int Id { get; set; }
    public string Name { get; set; }
}

public class StudentController : ApiController
{
    public Student Post(Student student)
    {
        // save student into db
        var insertedStudent = SaveStudent(student);

        return insertedStudent;
    }
}
Posted by: Guest on October-12-2020
0

api response format

GET http://localhost:60464/api/student HTTP/1.1
User-Agent: Fiddler
Host: localhost:1234
Accept: application/json
Posted by: Guest on October-12-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language