# APIs development

**URL:** <https://community.parseplatform.org/t/apis-development/935>\
**Category:** REST API\
**Created:** [October 13, 2020, 4:56pm UTC](https://community.parseplatform.org/t/apis-development/935 "2020-10-13T16:56:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sabih142](https://community.parseplatform.org/letter_avatar_proxy/v4/letter/s/df705f/32.png) [@Sabih142](https://community.parseplatform.org/u/Sabih142)\
**Post date:** [October 13, 2020, 4:56pm UTC](https://community.parseplatform.org/t/apis-development/935/1 "2020-10-13T16:56:38Z")

</div>

How can i create api for registration and login for use in React Frontend

---

<div class="post-metadata">

**Author:** ![davimacedo](https://community.parseplatform.org/user_avatar/community.parseplatform.org/davimacedo/32/316_2.png) [@davimacedo](https://community.parseplatform.org/u/davimacedo)\
**Post date:** [October 13, 2020, 4:59pm UTC](https://community.parseplatform.org/t/apis-development/935/2 "2020-10-13T16:59:25Z")

</div>

Parse automatically provides apis for sign up and log in:  
[https://docs.parseplatform.org/js/guide/#signing-up](https://docs.parseplatform.org/js/guide/#signing-up)  
[https://docs.parseplatform.org/js/guide/#logging-in](https://docs.parseplatform.org/js/guide/#logging-in)

---

<div class="post-metadata">

**Author:** ![codechuck](https://community.parseplatform.org/letter_avatar_proxy/v4/letter/c/ea666f/32.png) [@codechuck](https://community.parseplatform.org/u/codechuck)\
**Post date:** [October 14, 2020, 3:19am UTC](https://community.parseplatform.org/t/apis-development/935/3 "2020-10-14T03:19:30Z")

</div>

I’m currently working on a React app. Post your questions and I’ll try to help.

I’m using React with the JS SDK and the signup process is quite simple:

1. Instantiate Parse:

```auto
import Parse from 'parse';

Parse.initialize("YOUR_APP_ID", "YOUR_JAVASCRIPT_KEY");
//javascriptKey is required only if you have it on server.

Parse.serverURL = 'http://YOUR_PARSE_SERVER:1337/parse'

```

1. Sign up the user:

```auto
let user = new Parse.User();
user.set("username", data.email);
user.set("password", data.password);
user.set("email", data.email);
user.signUp()
    .then(response => {
        // handle success
    })
    .catch(error => {
        // handle error
    })

```

---

<div class="post-metadata">

**Author:** ![Sabih142](https://community.parseplatform.org/letter_avatar_proxy/v4/letter/s/df705f/32.png) [@Sabih142](https://community.parseplatform.org/u/Sabih142)\
**Post date:** [October 14, 2020, 4:36am UTC](https://community.parseplatform.org/t/apis-development/935/4 "2020-10-14T04:36:29Z")

</div>

I have to use signup api for form which have following fields:

1.Role(singer or user)  
2.fullname  
3.username  
4.password

Moreover user can also signup via gmail and facebook ids
